Collections

Apply a collections configuration

Changed on

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.

put/v1/collections/config

Request

  • Base URL
    https://api.talonic.com
  • Auth
    HTTP bearer

Query parameters

dry_run, boolean

Check and preview the change; nothing is saved.

prune, boolean

Remove keyed collections the document does not name.

Request body

object required
document, object

The configuration document.

yaml, string

The configuration document as YAML or JSON text.

Response

OK

object required

Changes