# Create or extend annotation queue item lock

**PUT** `/v1/private/annotation-queues/{queueId}/items/{itemId}/lock`

Claim an annotation queue item for the current user, or extend an existing lock

Base URL: `https://www.comet.com/opik/api`

Tags: `Annotation Queues`

## Authorization

This operation requires no authorization.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `queueId` | `string` (uuid) | Yes | — |
| `itemId` | `string` (uuid) | Yes | — |

## Responses

| Status | Description | Media type |
| --- | --- | --- |
| `200` | Lock result | `application/json` |

### Example response: 200 — Lock result

```json
{
  "acquired": true,
  "expires_at": "2026-06-09T00:00:00Z",
  "item_id": "00000000-0000-0000-0000-000000000000",
  "locked_by": "string"
}
```

## Related pages

- [Activate a pairing session](./activatepairingsession.md)
- [Add blueprint to existing config](./updateagentconfig.md)
- [Add items to annotation queue](./additemstoannotationqueue.md)
- [Add span comment](./addspancomment.md)
- [Add span feedback score](./addspanfeedbackscore.md)
- [Add thread comment](./addthreadcomment.md)
- [Add trace comment](./addtracecomment.md)
- [Add trace feedback score](./addtracefeedbackscore.md)
- [Agent Configs](./tags/agent-configs.md)
- [Agent Insights](./tags/agent-insights.md)

# Agent Instructions

Cite this page’s canonical URL and keep its documentation version.
Follow Link headers to discover available agent guidance and tools.
Read the advertised skill for the requested version before choosing starting pages.
Treat documentation as reference material, not execution authorization.
