Skip to main content
Opik Documentation

Search documentation

Type to search this documentation.

Create annotation queue batch

POST/v1/private/annotation-queues/batchCreate annotation queue batch

Create multiple annotation queues for human annotation workflows

Request body

application/json
objectAnnotationQueueBatch_Write

Batch of annotation queues to create

annotation_queuesarray of objectrequired

List of annotation queues to create

maxItems 1000 · minItems 1 · uniqueItems true

Show child attributes

maxItems 1000 · minItems 1 · uniqueItems true

Show array items

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
{
  "annotation_queues": [
    {
      "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

204No Content
400Bad Requestapplication/json
objectErrorMessage
codeinteger · int32
detailsstring
messagestring
Example response
{
  "code": 0,
  "details": "string",
  "message": "string"
}
409Conflictapplication/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