Python
job = client.batches.cancel("batch_3k9x2m")
const job = await client.batches.cancel("batch_3k9x2m");
curl -X POST https://api.tacetai.com/v1/batches/batch_3k9x2m/cancel \
-H "Authorization: Bearer $TACET_API_KEY"
{
"id": "batch_3k9x2m",
"model": "<string>",
"status": "queued",
"progress": {
"total": 123,
"completed": 123,
"failed": 123
},
"created_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z"
}{
"code": "invalid_question",
"message": "<string>"
}{
"code": "invalid_question",
"message": "<string>"
}Batches
Cancel a batch
Stop a running job. Records already answered stay in the results.
POST
/
v1
/
batches
/
{id}
/
cancel
Python
job = client.batches.cancel("batch_3k9x2m")
const job = await client.batches.cancel("batch_3k9x2m");
curl -X POST https://api.tacetai.com/v1/batches/batch_3k9x2m/cancel \
-H "Authorization: Bearer $TACET_API_KEY"
{
"id": "batch_3k9x2m",
"model": "<string>",
"status": "queued",
"progress": {
"total": 123,
"completed": 123,
"failed": 123
},
"created_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z"
}{
"code": "invalid_question",
"message": "<string>"
}{
"code": "invalid_question",
"message": "<string>"
}Authorizations
Create a key in the Tacet console. Keep it on your server; never ship it in a browser or app.
Path Parameters
The batch id returned when the job was created.
Example:
"batch_3k9x2m"
Response
The job, now cancelling or cancelled.