openAiBatch
Cancel a batch
Cancel an in-progress OpenAI-compatible batch. Already completed requests are not affected.
post/api/v1/batches/{batch_id}/cancel
Path parameters
batch_idstring required
Batch ID.
Headers
Authorizationstring required
Use your Respan API key for Respan API authentication. Enter only the Respan API key value; clients send Authorization: Bearer <RESPAN_API_KEY>. For /api/responses, OpenAI or Azure OpenAI provider credentials go in Settings -> Providers or the request body credential_override field, not in this auth field.
X-Data-Respan-Paramsstring
Base64-encoded JSON object of Respan request parameters. Legacy X-Data-Keywordsai-Params is still accepted.
Request body
object required
Response
Batch cancellation initiated.