{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/orq/json-schema/orq-annotation-queue-schema.json",
  "title": "AnnotationQueue",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/orq-annotation-queues-api-openapi.yml#/components/schemas/AnnotationQueue",
  "required": [
    "_id",
    "display_name",
    "description",
    "workspace_id",
    "human_review_ids",
    "metadata"
  ],
  "type": "object",
  "properties": {
    "_id": {
      "type": "string",
      "description": "Unique annotation queue identifier assigned by ORQ."
    },
    "display_name": {
      "type": "string",
      "description": "The display name of the annotation queue."
    },
    "description": {
      "type": "string",
      "description": "The description of the annotation queue."
    },
    "workspace_id": {
      "type": "string",
      "description": "The unique identifier of the workspace it belongs to."
    },
    "project_id": {
      "type": "string",
      "description": "The project ID. When set, human reviews are resolved from the project automatically."
    },
    "human_review_ids": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Legacy: manually selected human review IDs. Used only when project_id is not set."
    },
    "metadata": {
      "allOf": [
        {
          "$ref": "#/$defs/AnnotationQueueMetadata"
        }
      ],
      "description": "Aggregate counters for the annotation queue."
    },
    "created_by_id": {
      "type": "string",
      "description": "The account that created the annotation queue. Unset when created via API key authentication."
    },
    "updated_by_id": {
      "type": "string",
      "description": "The account that last updated the annotation queue. Unset when updated via API key authentication."
    },
    "created": {
      "type": "string",
      "description": "The date and time the annotation queue was created.",
      "format": "date-time"
    },
    "updated": {
      "type": "string",
      "description": "The date and time the annotation queue was last updated.",
      "format": "date-time"
    }
  },
  "$defs": {
    "AnnotationQueueMetadata": {
      "required": [
        "items_count"
      ],
      "type": "object",
      "properties": {
        "items_count": {
          "type": "integer",
          "description": "Number of items currently in the annotation queue.",
          "format": "int32"
        }
      },
      "description": "Aggregate counters maintained by the service as items are added and removed."
    }
  }
}