Skip to main content
POST
Create a collection

Authorizations

Authorization
string
header
required

Cactal API key. Create one in the dashboard or via POST /apiKeys. The plaintext key is shown once at creation.

Body

application/json
websiteId
string
required
Minimum string length: 1
slug
string
required
Pattern: ^[a-z][a-z0-9-]{0,63}$
displayName
string
required
Required string length: 1 - 200
description
string | null
Maximum string length: 2000
fields
object[]
Maximum array length: 100

Response

The created collection and its fields.

collection
object
required
fields
object[]
required

The fields defining the shape of every item in the collection, in display order.