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

createdOndatetimeOptionalDefaults to 1970-01-01T00:00:00.000Z

The date the collection was created

lastUpdateddatetimeOptionalDefaults to 1970-01-01T00:00:00.000Z

The date the collection was last updated

Errors