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

fieldslist of objectsOptional

An array of custom fields to add to the collection

Response

Request was successful

idstring

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

slugstringOptional

Slug of Collection in Site URL structure

createdOndatetimeOptional

The date the collection was created

lastUpdateddatetimeOptional

The date the collection was last updated

Errors

Built with