---
title: "Update a collection"
method: PATCH
path: "/knowledge-bases/{id}/collections/{collection_id}"
tags: ["collections"]
---

# Update a collection

`PATCH /knowledge-bases/{id}/collections/{collection_id}`

Updates an existing collection. Only provided fields are modified.

**Rate limit:** 10 requests per minute

## Path parameters

- `id` string, required
- `collection_id` string, required

## Request body

- UpdateCollectionRequestBody
  - `description` string — The description of the collection.
  - `slug` string — The slug of the collection.
  - `title` string — The title of the collection.
  - `visibility_config` CollectionVisibilityConfig
    - `ai_agent_access` 'inherit' | 'none' | 'specific_agents' — AI agent access control. Defaults to inherit from the parent scope when omitted. `inherit`: Defers the access check to the parent object (Collection or KnowledgeBase). `none`: No AI agents have access to this article. `specific_agents`: Only specific AI agents enumerated in the allowlist have access.
    - `allowed_agent_ids` string[] — List of AI agent IDs that may access this resource when ai_agent_access is set to "specific_agents".
    - `visibility` 'public' | 'customer' | 'internal_only' — The visibility setting.

## Response `200`

- UpdateCollectionResponseBody
  - `data` Collection
    - `created_at` string — The created at time of the collection.
    - `description` string — The description of the collection.
    - `icon` string — The icon of the collection.
    - `id` string — The ID of the collection.
    - `parent_collection_id` string — The ID of the parent collection.
    - `slug` string — The slug of the collection.
    - `title` string — The name of the collection.
    - `visibility_config` CollectionVisibilityConfig
      - `ai_agent_access` 'inherit' | 'none' | 'specific_agents' — AI agent access control. Defaults to inherit from the parent scope when omitted. `inherit`: Defers the access check to the parent object (Collection or KnowledgeBase). `none`: No AI agents have access to this article. `specific_agents`: Only specific AI agents enumerated in the allowlist have access.
      - `allowed_agent_ids` string[] — List of AI agent IDs that may access this resource when ai_agent_access is set to "specific_agents".
      - `visibility` 'public' | 'customer' | 'internal_only' — The visibility setting.
  - `request_id` string — The request ID for tracking.

## Other responses

- `400` — The request was invalid or could not be completed.
- `404`
- `500` — An unexpected internal error occurred.

---

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