Cancel a task
Cancel a background task. A queued task is cancelled at once. A running one is asked to stop: it stays running with cancelRequestedAt until its next checkpoint (an import stops after its current batch of rows), then ends cancelled; what it already did stays done. Asking again changes nothing; a finished task fails with INVALID_STATE.
- Scope:
raiz:tasks:write - Credentials: an API key, a client-credentials token or a person's access token
- Effect: writes; idempotent, safe to retry
- Limits: request body up to 32 KB, response up to 1 MB
- CLI:
arbol raiz tasks cancel· MCP tool:raiz_tasks_cancel
POST
https://api.getarbol.com/v1/raiz/tasks/{taskId}/cancelAuthorization
Path parameters
Request body JSON required
Returns
200
Successful operation.
404
NOT_FOUND: The requested operation does not exist.RESOURCE_NOT_FOUND: The requested resource does not exist in this organization.
502
OUTCOME_UNKNOWN: The operation may have been applied; check its result before repeating it.
503
UPSTREAM_UNAVAILABLE: The upstream service could not complete the request.INTEGRATIONS_UNAVAILABLE: The organization's integrations cannot be read right now. Try again shortly.