staqlydocs
REST APIAPI referenceJobs

Queue a failed job again, now

Queue a failed job again, now (posts:publish)

Every request sends Authorization: Bearer ...: the access token in local mode, an API key stk_... in cloud mode. Use Send to try it against your cloud instance with your API key.

POST
/v1/jobs/{id}/retry

Authorization

headerAuthorizationBearer <token>

API key (stk_...), or in the Community Edition the access token (stk_local_...)

Path Parameters

id*string

Header Parameters

Idempotency-Key?string

Replays the stored response when the same key is repeated with the same method, path, query string and body within 24 hours (422 idempotency_mismatch with a different request, 409 idempotency_in_progress while the first one runs). Not applied to multipart uploads or to responses that carry a secret.

Lengthlength <= 200

Response Body

Queued

application/json
  1. response

One unit of background work

id*string
kind*string
Value in"publish_post""publish_target""target_timeout""run_schedule""refresh_channel""repeat_post""publish_reply""repost""notify_people""notify_person"
key*string

Unique per subject (publish_post:); queueing the same key again replaces a queued job, and runs a running one again when it ends

status*string
Value in"queued""running""done""failed""cancelled"
run_at*string
Formatdate-time
attempts*integer
max_attempts*integer
lease_until*|Deprecated

Always null (the queue no longer uses leases)

Formatdate-time
leased_by*string

The worker that ran the last attempt

last_error*string
payload*
created_at*string
Formatdate-time
updated_at*string
Formatdate-time
done_at*|
Formatdate-time
curl -X POST 'https://staqly.example.com/v1/jobs/string/retry'
{  "id": "string",  "kind": "publish_post",  "key": "string",  "status": "queued",  "run_at": "2019-08-24T14:15:22Z",  "attempts": 0,  "max_attempts": 0,  "lease_until": "2019-08-24T14:15:22Z",  "leased_by": "string",  "last_error": "string",  "payload": {    "post_id": "string",    "channel_id": "string",    "schedule_id": "string",    "index": 0,    "parent_id": "string",    "repost_by": "string",    "event_id": "string",    "user_id": "string"  },  "created_at": "2019-08-24T14:15:22Z",  "updated_at": "2019-08-24T14:15:22Z",  "done_at": "2019-08-24T14:15:22Z"}