Batch
Cancel Batch
Cancel an in-progress batch task. The status will change to cancelling and then to cancelled. Only tasks in validating, in_progress, or finalizing status can be cancelled.
post/v1/batches/{batch_id}/cancel
Request
- Base URL: https://api.moonshot.ai
- URL: https://api.moonshot.ai/v1/batches/{batch_id}/cancel
- Auth: HTTP bearer
Path parameters
batch_idstring required
The ID of the batch task
Response
The cancelled batch task
Example response
{
"object": "batch"
}Changes
No recorded changes to this operation across all 1 revision of this API.