Batches
Batch management
Adds one batch or replaces the whole batch list. Send name to append a batch, keeping the existing ones; an existing batch with the same name is not detected, so you get a second entry with a new ID. Send batches to overwrite the project's batch list with exactly what you pass. Sending neither returns 400.
Authorizations
apikeystringRequired
API key for authentication. Format - apikey YOUR_API_KEY
Path parameters
projectIdstringRequired
Project ID
Body
Send name or batches, not both. name wins when both are present.
anyOptional
anyOptional
Responses
200
Batches updated successfully
application/json
statusstringOptionalExample:
success400
Bad request - validation error
application/json
401
Unauthorized - invalid or missing API key
application/json
403
Forbidden - insufficient permissions
application/json
404
Resource not found
application/json
post/batches/{projectId}
POST /v2/batches/{projectId} HTTP/1.1
Host: imeritapi.ango.ai
apikey: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 79
{
"name": "text",
"batches": [
{
"_id": "507f1f77bcf86cd799439011",
"name": "Batch 1"
}
]
}{
"status": "success",
"data": {
"project": {
"_id": "507f1f77bcf86cd799439011",
"name": "Batch 1"
}
}
}Last updated

