jobs_id_cancel_post
Cancel a queued job by ID before it starts; running, finished, expired, or already cancelled jobs remain unchanged.
Instructions
jobs: Cancel a job. POST /v1/jobs/{id}/cancel. Cancels a job that is still queued. A running, finished, expired or already cancelled job is unchanged. Cancelling costs 0 credits. Costs 0 credits when it succeeds. Errors, blocked or timed-out requests, invalid requests and cache hits cost nothing. A not-found or empty result is charged only where that operation's published cost says so.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"id": "<id>"
},
"name": "jobs_id_cancel_post"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Job id from the 202 response. Pass that id and nothing else. |