---
raw: true
search:
  tags:
    - Spaces
    - POST
seo:
  description: >-
    Requests one of the live version's declared cron paths on this… Reference
    for the POST /v1/spaces/{spaceId}/crons/run endpoint in the Spacefast
    Partner API.
sidebar:
  label: Run a scheduled job now
  badge: POST
title: Run a scheduled job now
type: openapi-operation
---
Requests one of the live version's declared cron paths on this space's default hostname, right now, and returns what it answered. Requires write access to the space, because a cron handler can mutate state — the same authority `wp-cli` and `db console` require. `target` is a declared key or path — anything else is rejected, and no request is made. Headers are not passed through and redirects are not followed; use `sf crons run --header` for a handler that checks a secret. The platform's `x-spacefast-cron` header is never carried, so a handler gated on it will refuse.

`POST /v1/spaces/{spaceId}/crons/run`

**Request body** (`application/json`, required)

- `target` (string, required) — Key or path of a scheduled job the live version declares.

Request body example:

```json
{
  "target": "string"
}
```

**Responses**

- `200` — Response for status 200
- `default` — Problem details (RFC 9457). Any 4xx/5xx response is one \`application/problem+json\` document.

Response example, 200:

```json
{
  "$schema": "http://example.com",
  "data": {
    "status": -9007199254740991,
    "durationMs": -9007199254740991,
    "bodySnippet": "string"
  }
}
```
