Cancel a running task and associated jobs.
cURL
curl --request POST \ --url https://twill.ai/api/v1/tasks/{taskIdOrSlug}/cancel \ --header 'Authorization: Bearer <token>'
{ "success": true, "task": { "id": "<string>" } }
CANCELLED
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Task cancelled
Show child attributes
Was this page helpful?