---
title: "Apply a collections configuration"
method: PUT
path: "/v1/collections/config"
tags: ["Collections"]
---

# Apply a collections configuration

`PUT /v1/collections/config`

## Request

- Base URL: `https://api.talonic.com`
- URL: `https://api.talonic.com/v1/collections/config`
- Auth: HTTP bearer

Applies a configuration document: every problem is reported at once (400 with `details.problems`) before anything changes, then everything is saved together. Collections are matched by their path of keys, so applying the same document twice changes nothing. With `dry_run=true` nothing is saved and the answer lists what would be created, changed and removed, how many documents each collection would hold for you, and for each limit how many documents it hides from how many people. `prune=true` removes keyed collections the document does not name, and refuses (409) one that still has a limit or documents placed by hand. A key with no person cannot change `only` (403). Requires the `documents:write` scope. The key's person must be an Admin of the workspace (the `workspace` permission), as in the web app.

## Query parameters

- `dry_run` boolean
- `prune` boolean

## Request body

- object
  - `document` object: The configuration document.
  - `yaml` string: The configuration document as YAML or JSON text.

## Response `200`

OK

- object

## Other responses

- `400`: The request is invalid.
- `401`: Missing or invalid API key.
- `403`: The API key does not have the required scope.
- `409`: The request conflicts with the current resource state.
- `429`: Daily rate limit exceeded.

## Changes

- **2026-11-30** `a35fbf7a8ecf`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/talonic/apis/talonic-api/changes/v1/collections/config/put.md)

---

[API](https://skmtc.dev/talonic/apis/talonic-api.md) - [All operations](https://skmtc.dev/talonic/apis/talonic-api/llms.txt) - [OpenAPI document](https://skmtc.dev/talonic/apis/talonic-api/revisions/9f6d53e2ab5e?raw)
