Cancel task

Cancels task with ID: task_id.

POST
/api/tasks/{task_id}/cancel

Authorization

AuthorizationBearer <token>required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

In: header

Path Parameters

task_idstring<uuid>required

Response Body

Task was cancelled

application/json
messagestringoptional
Example"Task with id: 0fb77979-3efc-402e-b7ba-fe1cd8cbc52d was cancelled."
curl -X POST "https://example.com/api/tasks/52921d5c-eb41-45d6-96a8-f2da5616c717/cancel"
{  "message": "Task with id: 0fb77979-3efc-402e-b7ba-fe1cd8cbc52d was cancelled."}