Cancel a batch job (Gemini format)
Cancels a batch job. Gemini conventionally sends the request as
/v1beta/batches/{batch_id}:cancel; the router matches the :cancel
suffix into the batch_id path parameter.
AuthorizationBearer <token>
Bearer token authentication. Use your MPilot virtual-key JWT or admin JWT.
Virtual keys (prefixed with sk-bf-) can also be passed here.
In: header
Path Parameters
batch_idstring
Batch identifier, optionally with a :cancel action suffix.
Response Body
curl -X POST "https://loading/{AI_GATEWAY_URL}/genai/v1beta/batches/string"{}{
"error": {
"code": 0,
"message": "string",
"status": "string",
"details": [
{
"@type": "string",
"fieldViolations": [
{
"description": "string"
}
]
}
]
}
}{
"error": {
"code": 0,
"message": "string",
"status": "string",
"details": [
{
"@type": "string",
"fieldViolations": [
{
"description": "string"
}
]
}
]
}
}