For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to page URLs.
Skip to content

Batches

Batch management

Update Project Batches

post
/batches/{projectId}

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
or
anyOptional
Responses
200

Batches updated successfully

application/json
statusstringOptionalExample: success
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