---
title: "Update a collection"
method: PATCH
path: "/ai/collections/{uuid}"
tags: ["AI Collections"]
---

# Update a collection

`PATCH /ai/collections/{uuid}`

Updates a collection's metadata (`name` and/or `description`). Sources and settings are managed through their own sub-resources.

## Path parameters

- `uuid` string, uuid, required

## Request body

- UpdateCollectionRequest — Metadata-only update. Provide either or both fields.
  - `name` string
  - `description` string

## Response `200`

The updated collection.

- CollectionEnvelope
  - `data` Collection
    - `uuid` string, uuid
    - `slug` string
    - `record_type` string — Identifies the record type. Always `ai_collection`.
    - `name` string
    - `description` string
    - `status` string
    - `sources` CollectionsSource[]
      - `id` string
      - `record_type` string — Identifies the record type. Always `ai_collection_source`.
      - `collection_id` string, uuid
      - `source_type` 'voice' | 'meeting_bot' | 'message' | 'bucket' — The type of Telnyx data attached as a source. `bucket` requires an additional `bucket_id`. Only `voice` is searchable today; `meeting_bot`, `message`, and `bucket` attach but are not yet searchable (Coming soon).
      - `bucket_id` string — The Telnyx Storage bucket name. Present only for `bucket` sources.
      - `status` string
    - `settings` RetrievalSettingsWrapper
      - `record_type` string — Identifies the record type. Always `ai_collection_settings`.
      - `retrieval` RetrievalSettings — How documents are retrieved when searching the collection.
        - `top_k` integer — Number of top results to retrieve (1–50).
        - `retrieval_type` 'vector' | 'hybrid' — Retrieval strategy. `vector` runs semantic similarity search; `hybrid` combines vector similarity with keyword matching; `keyword` runs lexical (BM25) matching. `keyword` is not accepted yet: setting it returns 422 `unsupported_retrieval_type`. A collection set to `hybrid` is accepted here but cannot be searched until hybrid execution ships.
    - `created_at` string, date-time
    - `updated_at` string, date-time

## Other responses

- `400` — The request was malformed or failed validation.
- `401` — Missing or invalid authentication.
- `404` — The requested resource does not exist.

## Changes

> 93 revisions in range; 1 not diffed.

- **2026-09-16** `a6a61a29ecdd` — 3 breaking, 3 warning, 10 info
  - the `errors/items/code` response's property type changed from `string` to `integer`, and format from no format to `int32` for status `400`
  - the `errors/items/code` response's property type changed from `string` to `integer`, and format from no format to `int32` for status `401`
  - the `errors/items/code` response's property type changed from `string` to `integer`, and format from no format to `int32` for status `404`
  - removed the optional property `errors/items/meta/pointer` from the response with the `400` status
  - …12 more
- **2026-08-17** `1571b0380bd7` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/team-telnyx/apis/telnyx-api-2/changes/ai/collections/:uuid/patch.md)

---

[API](https://skmtc.dev/team-telnyx/apis/telnyx-api-2.md) · [All operations](https://skmtc.dev/team-telnyx/apis/telnyx-api-2/llms.txt) · [OpenAPI document](https://skmtc.dev/team-telnyx/apis/telnyx-api-2/revisions/88481995b4ca?raw)
