Create Collection

POST

Create a Collection for a site.

Required scope | cms:write

Path parameters

site_idstringRequired

Unique identifier for a Site

Request

This endpoint expects an object.
displayNamestringRequired

Name of the collection. Each collection name must be distinct.

singularNamestringRequired

Singular name of each item.

slugstringOptional

Part of a URL that identifier

Response

Request was successful

idstring

Unique identifier for a Collection

fieldslist of objects

The list of fields in the Collection

displayNamestringOptional

Name given to the Collection

singularNamestringOptional

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

slugstringOptional

Slug of Collection in Site URL structure

createdOndatetimeOptional

The date the collection was created

lastUpdateddatetimeOptional

The date the collection was last updated

Errors