---
title: "Update Collection."
method: PATCH
path: "/v1/voice-agents/collections/{id}"
---

# Update Collection.

`PATCH /v1/voice-agents/collections/{id}`

Updates an existing collection's name or description.

## Path parameters

- `id` string, uuid, required

## Request body

- UpdateCollectionRequest
  - `name` string, required — Updated name of the collection (optional).
  - `description` string — Updated description of the collection (optional).

## Response `200`

Successful response

- UpdateCollectionResponse
  - `success` boolean
  - `message` string
  - `data` Collection
    - `id` string, uuid — UUID of the collection.
    - `name` string — Name of the collection.
    - `description` string, nullable — Description of the collection.
    - `userId` string, uuid — UUID of the user who created the collection.
    - `projectId` string, uuid — UUID of the project.
    - `webToolsCount` integer — Number of web tools in this collection.
    - `createdAt` string, date-time — Timestamp when the collection was created.
    - `updatedAt` string, date-time — Timestamp when the collection was last updated.

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `404` — Not found
- `500` — Server Side Error

---

[API](https://skmtc.net/tryhamsa/apis/hamsa-api.md) · [All operations](https://skmtc.net/tryhamsa/apis/hamsa-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/tryhamsa/hamsa-api/versions/ecbeb5d8dc13/schema)
