Annotate a batch of dataset examples
Write human annotations to a batch of examples in a dataset.
Idempotency: Writes use upsert semantics — submitting the same annotation config name for the same example overwrites the previous value. Retrying on network failure will not create duplicates.
202 Accepted: The annotations have been accepted and will be written. Visibility in read queries may lag by a short interval. No response body is returned.
Unmatched record IDs: If a record_id does not correspond to an existing
example in the dataset, the annotation for that record is silently ignored.
No error is returned.
Payload Requirements
dataset_idis the path parameter for the target dataset.annotationsis a list of per-example annotation inputs, each identified byrecord_id.- Annotation names must match existing annotation configs in the dataset’s space.
- Up to 1000 examples may be annotated per request.
Valid example
{
"annotations": [
{"record_id": "ex_abc", "values": [{"name": "quality", "score": 0.8}]}
]
}
Invalid example (annotation name not found in space)
{
"annotations": [
{"record_id": "ex_abc", "values": [{"name": "nonexistent_config"}]}
]
}
Authorizations
Most Arize AI endpoints require authentication. For those endpoints that require authentication, include your API key in the request header using the format
Path Parameters
The unique dataset identifier (base64) A universally unique identifier (base64-encoded opaque string).
"RW50aXR5OjEyMzQ1"
Body
Body containing dataset example annotation batch
Batch annotation request for dataset examples.
Batch of dataset example annotations to write. Up to 1000 examples per request.
1 - 1000 elementsResponse
Annotations written successfully. The annotations have been accepted and will be written. Visibility in read queries may lag by a short interval.