v1

latestOpenAPI 3.0.02026-07-141,4077,1665.2 MB
LLM Observability

Update an LLM Observability annotation queue

Partially update an annotation queue. The name, description, and annotation_schema fields can be updated.

patch/api/v2/llm-obs/v1/annotation-queues/{queue_id}

Path parameters

queue_idstring required

The ID of the LLM Observability annotation queue.

Request body

Example request

{
  "data": {
    "attributes": {
      "annotation_schema": {
        "label_schemas": [
          {
            "description": "Rating of the response quality.",
            "id": "abc-123",
            "is_required": true,
            "max": 5,
            "name": "quality",
            "type": "score",
            "values": [
              "good",
              "bad",
              "neutral"
            ]
          }
        ]
      },
      "description": "Updated description",
      "name": "Updated queue name"
    },
    "type": "queues"
  }
}

Response

OK

Example response

{
  "data": {
    "attributes": {
      "annotation_schema": {
        "label_schemas": [
          {
            "description": "Rating of the response quality.",
            "id": "abc-123",
            "is_required": true,
            "max": 5,
            "name": "quality",
            "type": "score",
            "values": [
              "good",
              "bad",
              "neutral"
            ]
          }
        ]
      },
      "created_at": "2024-01-15T10:30:00Z",
      "created_by": "00000000-0000-0000-0000-000000000002",
      "description": "Queue for annotating customer support traces",
      "modified_at": "2024-01-15T10:30:00Z",
      "modified_by": "00000000-0000-0000-0000-000000000002",
      "name": "My annotation queue",
      "owned_by": "00000000-0000-0000-0000-000000000002",
      "project_id": "00000000-0000-0000-0000-000000000002"
    },
    "id": "00000000-0000-0000-0000-000000000001",
    "type": "queues"
  }
}