Skip to main content
Opik Documentation

Search documentation

Type to search this documentation.

Create annotation queue

POST/v1/private/annotation-queuesCreate annotation queue

Create annotation queue for human annotation workflows

Request body

application/json
objectAnnotationQueue_Write

List of annotation queues to create

annotators_per_iteminteger · int32

maximum 1000 · minimum 1

automationobject
Show child attributes
conditionsobject
Show child attributes
groupsarray of objectrequired

maxItems 5 · minItems 0

Show child attributes

maxItems 5 · minItems 0

Show array items
conditionsarray of objectrequired

maxItems 5 · minItems 0

Show child attributes

maxItems 5 · minItems 0

Show array items
operatorstringrequired

one of ">", "<", "="

score_namestringrequired

maxLength 255 · minLength 0

valuenumber · doublerequired
enabledboolean
max_items_in_queueinteger · int32
comments_enabledboolean
descriptionstring
feedback_definition_namesarray of string
Show child attributes
idstring · uuid
instructionsstring
lock_timeout_secondsinteger · int32

maximum 3600 · minimum 1

namestringrequired

minLength 1

project_idstring · uuidrequired
scopestringrequired

one of "trace", "thread"

Example request
{
  "annotators_per_item": 0,
  "automation": {
    "conditions": {
      "groups": [
        {
          "conditions": [
            {
              "operator": "<",
              "score_name": "string",
              "value": 0
            }
          ]
        }
      ]
    },
    "enabled": true,
    "max_items_in_queue": 0
  },
  "comments_enabled": true,
  "description": "string",
  "feedback_definition_names": [
    "string"
  ],
  "id": "00000000-0000-0000-0000-000000000000",
  "instructions": "string",
  "lock_timeout_seconds": 0,
  "name": "string",
  "project_id": "00000000-0000-0000-0000-000000000000",
  "scope": "thread"
}

Responses

201Created

Headers

Location
400Bad Requestapplication/json
objectErrorMessage
codeinteger · int32
detailsstring
messagestring
Example response
{
  "code": 0,
  "details": "string",
  "message": "string"
}
422Unprocessable Contentapplication/json
objectErrorMessage
codeinteger · int32
detailsstring
messagestring
Example response
{
  "code": 0,
  "details": "string",
  "message": "string"
}
Documentation menu