Cancel a queued job
Cancel a queued job (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.
AuthorizationBearer <token>API key (stk_...), or in the Community Edition the access token (stk_local_...)
id*stringIdempotency-Key?stringReplays 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.
length <= 200OK
application/json- response
One unit of background work
id*stringkind*string"publish_post""publish_target""target_timeout""run_schedule""refresh_channel""repeat_post""publish_reply""repost""notify_people""notify_person"key*stringUnique per subject (publish_post:); queueing the same key again replaces a queued job, and runs a running one again when it ends
status*string"queued""running""done""failed""cancelled"run_at*stringdate-timeattempts*integermax_attempts*integerlease_until*|DeprecatedAlways null (the queue no longer uses leases)
date-timeleased_by*stringThe worker that ran the last attempt
last_error*stringpayload*created_at*stringdate-timeupdated_at*stringdate-timedone_at*|date-timecurl -X POST 'https://staqly.example.com/v1/jobs/string/cancel'{ "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"}