Preview. This site is still being built. Features, prices and terms may change, and nothing here is a binding offer. Read the preview notice

Preview. Still being built; nothing here is a binding offer. Details

CMS · collections

4 routes. Paths are relative to https://api.intersink.com/v1.

All groups

List the channel's collections with product counts

GET/cms/channels/{channelId}/collections

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
channelIdrequiredstring, path
pagenumber, queryMinimum 1.
limitnumber, queryMinimum 1, maximum 100.
statusstring, queryOne of: "draft", "published", "archived".
qstring, querySearch in the title/name

Response

200. The payload in data is not described in the spec yet.

Create a collection

POST/cms/channels/{channelId}/collections

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
channelIdrequiredstring, path
Idempotency-Keystring, headerOptional client-generated key (8-128 chars, [A-Za-z0-9_-]). A retry with the same key and body replays the first response (Idempotent-Replayed: true); 409 while the first is in flight; 422 if the body differs.

Request body application/json

FieldTypeDescription
namerequiredstringAt most 120 characters. Example: "Electronics"
descriptionstringAt most 2000 characters.
parent_idstringParent collection of the same channel
statusstringOne of: "published", "draft".

Response

201. The payload in data is not described in the spec yet.

Edit a collection

PATCH/cms/channels/{channelId}/collections/{id}

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
channelIdrequiredstring, path
idrequiredstring, path

Request body application/json

FieldTypeDescription
namestringAt most 120 characters.
descriptionstringAt most 2000 characters.
parent_idstring
statusstringOne of: "published", "draft".

Response

200. The payload in data is not described in the spec yet.

Delete a collection (products stay; children move to the root)

DELETE/cms/channels/{channelId}/collections/{id}

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
channelIdrequiredstring, path
idrequiredstring, path

Response

200. The payload in data is not described in the spec yet.