Launch Week 3: Five days of launches

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.

POST/v2/annotation-queues/{annotationQueueId}/items
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"
  ]
}'
200
{
  "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_KEYstringRequired

    The API key of your Confident AI project.

Path parameters

  • annotationQueueIdstringRequired

    The id of the annotation queue.

Request body

  • Add Trace Queue Items Requestobject

    Traces to add to a TRACE queue.

    Show 1 propertyHide 1 property
    • traceUuidslist of stringsRequired

      The uuids of the traces to add.

  • OR
  • Add Span Queue Items Requestobject

    Spans to add to a SPAN queue.

    Show 1 propertyHide 1 property
    • spanUuidslist of stringsRequired

      The uuids of the spans to add.

  • OR
  • Add Thread Queue Items Requestobject

    Threads to add to a THREAD queue.

    Show 1 propertyHide 1 property
    • threadIdslist of stringsRequired

      The ids of the threads to add.

Response

Add Annotation Queue Items succeeded.

  • successboolean

    Indicates if the request was successful.

  • dataobject

    The items created by adding production data to a queue.

    Show 1 propertyHide 1 property
    • idslist of strings

      The ids of the queue items created, one per item that was not already in the queue.

  • linkstring

    This is the URL of the resource on the Confident AI platform.

  • deprecatedboolean

    Indicates if this endpoint is deprecated.

Built byConfident AI