Skip to main content
POST
Create or Update CMS Collection
A collection is identified by its slug. POSTing the same slug twice performs an upsert — the schema, name, description, and rules are replaced.
Changing the schema of a collection that already has items does not re-validate them. Existing rows keep their stored shape; new writes are validated against the new schema.

Rules object

The optional rules field controls collection behavior:

Example

Authorizations

x-api-key
string
header
required

API key for authentication. Get yours from Settings > API Keys in the Kardow dashboard.

Body

application/json
slug
string
required

URL-safe identifier. ^[a-z][a-z0-9_-]{0,63}$.

name
string
required
schema
object[]
required
Maximum array length: 40
description
string
visibility
enum<string>
default:public
Available options:
public,
gated,
private
rules
object

Optional behavior flags.

required_entitlement
string | null

Response

Created or updated

collection
object