---
title: "POST /model-hub/annotation-queues/{id}/add-label/"
method: POST
path: "/model-hub/annotation-queues/{id}/add-label/"
tags: ["model-hub"]
---

# POST /model-hub/annotation-queues/{id}/add-label/

`POST /model-hub/annotation-queues/{id}/add-label/`

## Request

- Base URL: `http://localhost:8000`
- URL: `http://localhost:8000/model-hub/annotation-queues/{id}/add-label/`
- Auth: one of:
  - API key in header `X-Api-Key`
  - API key in header `X-Secret-Key`

Add a label to an annotation queue.
Labels apply to all sources in the queue's project (for default queues).
Queue items are created lazily when someone actually annotates.

## Request body

- QueueLabelRequest
  - `label_id` string, uuid, required
  - `required` boolean

## Response `200`

OK

- QueueAddLabelResponse
  - `status` boolean
  - `result` QueueAddLabelResult, required
    - `label` QueueLabelResult, required
      - `id` string, uuid, required
      - `name` string, required
      - `type` string, required
      - `settings` object, required
      - `description` string
      - `allow_notes` boolean, required
      - `required` boolean, required
      - `order` integer, required
    - `created` boolean, required
    - `reopened_items` integer, required
    - `queue_status` string, required

## Other responses

- `400`: Bad Request
- `403`: Forbidden
- `404`: Not Found
- `409`: Conflict
- `500`: Internal Server Error
- `default`: Default error response

---

[API](https://skmtc.dev/futureagi/apis/future-agi-management-api.md) · [All operations](https://skmtc.dev/futureagi/apis/future-agi-management-api/llms.txt) · [OpenAPI document](https://skmtc.dev/futureagi/apis/future-agi-management-api/revisions/c8684118e142?raw)
