---
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.
  - `description` string
  - `name` string

## Response `200`

The updated collection.

- CollectionEnvelope
  - `data` Collection
    - `created_at` string, date-time
    - `description` string
    - `name` string
    - `record_type` string — Identifies the record type. Always `ai_collection`.
    - `settings` RetrievalSettingsWrapper
      - `record_type` string — Identifies the record type. Always `ai_collection_settings`.
      - `retrieval` RetrievalSettings — How documents are retrieved when searching the collection.
        - `retrieval_type` 'vector' | 'hybrid' | 'keyword' — Retrieval strategy. `vector` runs semantic similarity search; `hybrid` combines vector similarity with keyword matching; `keyword` runs lexical (BM25) matching.
        - `top_k` integer — Number of top results to retrieve (1–50).
    - `slug` string
    - `sources` Source[]
      - `bucket_id` string — The Telnyx Storage bucket name. Present only for `bucket` sources.
      - `collection_id` string, uuid
      - `id` string
      - `record_type` string — Identifies the record type. Always `ai_collection_source`.
      - `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).
      - `status` string
    - `status` string
    - `updated_at` string, date-time
    - `uuid` string, uuid

## Other responses

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

---

[API](https://skmtc.net/team-telnyx/apis/telnyx-api-2.md) · [All operations](https://skmtc.net/team-telnyx/apis/telnyx-api-2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/team-telnyx/telnyx-api-2/revisions/3fdc16374d70/schema)
