Create an annotation queue
Create a new annotation queue.
Payload Requirements
- The annotation queue name must be unique within the given space (among active queues).
- At least one
annotation_config_idis required, and all configs must belong to the specified space. - Do not include system-managed fields on input:
id,created_at,updated_at. - If
assignment_methodis not provided, it defaults to"all".
Valid example
{
"name": "Quality Review Queue",
"space_id": "spc_xyz789",
"annotation_config_ids": ["ac_abc123"],
"annotator_emails": ["reviewer@example.com"],
"assignment_method": "all"
}
Valid example with records
{
"name": "Quality Review Queue",
"space_id": "spc_xyz789",
"annotation_config_ids": ["ac_abc123"],
"annotator_emails": ["reviewer@example.com"],
"records": [
{"record_type": "span", "project_id": "prj_abc", "start_time": "2024-01-15T00:00:00Z", "end_time": "2024-01-16T00:00:00Z", "span_ids": ["span_001"]},
{"record_type": "example", "dataset_id": "ds_xyz", "example_ids": ["ex_001", "ex_002"]}
]
}
Invalid example (missing required annotation_config_ids)
{
"name": "My Queue",
"space_id": "spc_xyz789"
}
Authorizations
Most Arize AI endpoints require authentication. For those endpoints that require authentication, include your API key in the request header using the format
Body
Body containing annotation queue creation parameters
The name of the annotation queue. Must be unique within the space for active queues.
255"Quality Review Queue"
The space ID that the annotation queue belongs to
"spc_xyz789"
IDs of annotation configs to associate with this queue. All configs must belong to the same space.
1["ac_abc123", "ac_def456"]Email addresses of annotators to assign to the queue. Emails are resolved to user IDs server-side.
1An email address
[
"annotator1@example.com",
"annotator2@example.com"
]Instructions for annotators working on this queue
5000"Review each response for accuracy and helpfulness"
How records are assigned to annotators. Defaults to all when omitted.
all, random Record sources to add to the annotation queue on creation. At most 2 record sources (projects or datasets) may be provided in a single create request. Additional records from other sources can be added after creation.
2- Option 1
- Option 2
Response
Returns the created annotation queue
The unique identifier for the annotation queue
"aq_abc123"
The name of the annotation queue
"Quality Review Queue"
The space id the annotation queue belongs to
"spc_xyz789"
Users assigned as annotators to this queue
The timestamp for when the annotation queue was created
"2024-01-15T10:30:00Z"
The timestamp for when the annotation queue was last updated
"2024-01-20T14:45:00Z"
The instructions for the annotation queue
"Review each response for accuracy and helpfulness"
The annotation configs associated with this queue
- Option 1
- Option 2
- Option 3