> ## Documentation Index
> Fetch the complete documentation index at: https://docs.doctly.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Update Collection

> Rename a collection.

<RequestExample>
  ```bash cURL theme={null}
  curl -X PUT https://api.doctly.ai/api/v1/collections/{collection_id} \
    -H "Authorization: Bearer YOUR_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{"name": "Contracts 2026 (archived)"}'
  ```
</RequestExample>

**PUT** `/api/v1/collections/{collection_id}`

## Path Parameters

<ParamField path="collection_id" type="string" required>
  The collection's UUID.
</ParamField>

## Request

<ParamField body="name" type="string">
  New display name. Maximum 255 characters, unique per account.
</ParamField>

## Response

Returns the updated [collection object](/api-reference/collections/create#response).
