POST /sites/{site_id}/collections

Create a Collection for a site with collection fields.

Each collection includes the required name and slug fields, which are generated automatically. You can update the displayName of these fields, but the slug for them cannot be changed. Fields slugs are automatically converted to lowercase. Spaces in slugs are replaced with hyphens.

Required scope | cms:write

Servers

Path parameters

Name Type Required Description
site_id String Yes

Unique identifier for a Site

Request headers

Name Type Required Description
Content-Type String Yes The media type of the request body.

Default value: "application/json"

Request body fields

Name Type Required Description
slug String No

Part of a URL that identifier

displayName String Yes

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

singularName String Yes

Singular name of each item.

fields[] Array No

An array of custom fields to add to the collection

How to start integrating

  1. Add HTTP Task to your workflow definition.
  2. Search for the API you want to integrate with and click on the name.
    • This loads the API reference documentation and prepares the Http request settings.
  3. Click Test request to test run your request to the API and see the API's response.