Skip to main content
POST
/
tasks
/
cancel
Cancel Task
curl --request POST \
  --url http://localhost:3773/tasks/cancel \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "jsonrpc": "2.0",
  "method": "tasks/cancel",
  "params": {
    "taskId": "550e8400-e29b-41d4-a716-446655440042"
  },
  "id": "550e8400-e29b-41d4-a716-446655440042"
}'
{
"jsonrpc": "2.0",
"id": "550e8400-e29b-41d4-a716-446655440042",
"result": {
"message": "Task canceled successfully",
"task_id": "550e8400-e29b-41d4-a716-446655440042"
}
}

Authorizations

Authorization
string
header
required

Body

application/json
jsonrpc
enum<string>
required
Available options:
2.0
method
enum<string>
required
Available options:
tasks/cancel
params
object
required
id
string
required

Response

200 - application/json
  • Option 1
  • Option 2
jsonrpc
enum<string>
required
Available options:
2.0
result
object
required
id
string
required