Create Collection

Create a Collection for a site.

Required scope | cms:write

Path parameters

site_idstringRequiredformat: "objectid"
Unique identifier for a Site

Headers

AuthorizationstringRequired

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

Pass the Name of the collection, as well as the singular name of each item in the collection.
displayNamestringRequired
Name of the collection. Each collection name must be distinct.
singularNamestringRequired
Singular name of each item.
slugstringOptional
Part of a URL that identifier
fieldslist of objectsOptional
An array of custom fields to add to the collection

Response

Request was successful
idstringformat: "objectid"
Unique identifier for a Collection
displayNamestring
Name given to the Collection
singularNamestring

The name of one Item in Collection (e.g. ”Blog Post” if the Collection is called “Blog Posts”)

fieldslist of objects
The list of fields in the Collection
slugstring or null
Slug of Collection in Site URL structure
createdOnstring or nullformat: "date-time"
The date the collection was created
lastUpdatedstring or nullformat: "date-time"
The date the collection was last updated

Errors