Cancel a batch
POST/v1/batches/:batch_id/cancel
Ask the owning provider to stop the batch. Requests completed before cancellation can remain billable; DVARA settles any returned output file using the same accounting path as terminal retrieval.
Request
Responses
- 200
- 401
- 403
- 404
- 502
Cancelling batch
No key was sent (api_key_required), or the key is unknown (invalid_api_key), revoked (api_key_revoked) or expired (api_key_expired).
The key is valid but its nonempty scope list does not include batches:write (api_key_scope). On file upload and batch submit, a suspended workspace is also refused (workspace_suspended). On the Enterprise platform, upload and submit are also refused (policy_denied) when a JSONL line names a model the workspace may not use. The error names the first such line in line and custom_id.
The batch is not tracked for this workspace.
Every configured provider on the route (and every fallback) has failed.