Skip to Content
Docs
APIπŸ§ͺ REST EndpointsBackground jobs

Ask a running background job to stop

POST
/api/background_jobs/{job_id}/cancel

Ask a running background job to stop. It ends as cancelled once its work really stops; a step already under way may still complete.

Personal access token scope: conversations:write.

Authorization

bearer
headerAuthorizationBearer <token>

A session token or a personal access token. Leave it empty when the instance runs without authentication (AUTH_TYPE unset).

Path Parameters

job_id*string

Response Body

Success

Example Request
curl -X POST 'http://localhost:7091/api/background_jobs/string/cancel'
Example Response200
Empty