Cancel a batch
Changed onCancel an in-progress OpenAI-compatible batch. Already completed requests are not affected.
Request
- Base URLhttps://api.respan.ai
- URLhttps://api.respan.ai/api/v1/batches/{batch_id}/cancel
- AuthHTTP bearer
Path parameters
Batch ID.
Query parameters
Provider route with customer-owned credentials, for example openai or parasail.
Headers
Base64-encoded JSON object of Respan request parameters. Legacy X-Data-Keywordsai-Params is still accepted.
Request body
Response
Batch cancellation initiated.
Example response
{
"id": "batch_abc123",
"object": "batch",
"endpoint": "/v1/chat/completions",
"input_file_id": "file-abc123",
"completion_window": "24h",
"status": "in_progress",
"created_at": 1710000000,
"request_counts": {
"total": 100,
"completed": 97,
"failed": 3
}
}Changes
- breaking
the response property
became nullable for the status - breaking
the response property
became nullable for the status - breaking
the response property
became nullable for the status - breaking
the response property
became nullable for the status - breaking
the response property
became nullable for the status - breaking
the response property
became nullable for the status - breaking
the response property
became nullable for the status - breaking
the response property
became nullable for the status - breaking
the response property
became nullable for the status - breaking
the response property
became nullable for the status - breaking
the response property
became nullable for the status - info
api operation id
openAiBatch_cancelBatchremoved and replaced withcancelBatch - info
api tag
OpenAI Batchadded - info
api tag
openAiBatchremoved - info
removed
subschema #1subschema #2from theresponse propertyoneOflist for the response status
- breaking
- warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - info
added the non-success response with the status
- info
the response property
became required for the status
- warning