curl --request POST \
--url https://api.example.com/tasks/{task_id}/cancel/ \
--header 'Authorization: Bearer <token>'{}curl --request POST \
--url https://api.example.com/tasks/{task_id}/cancel/ \
--header 'Authorization: Bearer <token>'{}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Successful Response
The response is of type Response Cancel Task Tasks Task Id Cancel Post · object.