Add Annotation Queue Items
(v2)POST
Adds production data to an annotation queue and returns the ids of the items created. Send the list that matches the queue's type; every id must already exist in your project, and anything already in the queue is skipped.
curl -X POST "https://api.confident-ai.com/v2/annotation-queues/{annotationQueueId}/items" \
-H "CONFIDENT_API_KEY: <PROJECT-API-KEY>" \
-H "Content-Type: application/json" \
-d '{
"traceUuids": [
"3f9c2a1e-5b7d-4c8e-9f01-2a3b4c5d6e7f"
]
}'{
"success": true,
"data": {
"ids": [
"<QUEUE-ITEM-ID>"
]
},
"link": "https://app.confident-ai.com/project/<PROJECT-ID>/annotation-queues/<ANNOTATION-QUEUE-ID>",
"deprecated": false
}Headers
CONFIDENT_API_KEYstringRequiredThe API key of your Confident AI project.
Path parameters
annotationQueueIdstringRequiredThe id of the annotation queue.
Request body
Add Trace Queue Items RequestobjectTraces to add to a
TRACEqueue.Show 1 propertyHide 1 property
traceUuidslist of stringsRequiredThe uuids of the traces to add.
- OR
Add Span Queue Items RequestobjectSpans to add to a
SPANqueue.Show 1 propertyHide 1 property
spanUuidslist of stringsRequiredThe uuids of the spans to add.
- OR
Add Thread Queue Items RequestobjectThreads to add to a
THREADqueue.Show 1 propertyHide 1 property
threadIdslist of stringsRequiredThe ids of the threads to add.
Response
Add Annotation Queue Items succeeded.
successbooleanIndicates if the request was successful.
dataobjectThe items created by adding production data to a queue.
Show 1 propertyHide 1 property
idslist of stringsThe ids of the queue items created, one per item that was not already in the queue.
linkstringThis is the URL of the resource on the Confident AI platform.
deprecatedbooleanIndicates if this endpoint is deprecated.