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 · banners

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

All groups

List the channel's banners (all statuses)

GET/cms/channels/{channelId}/banners

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 banner (draft by default)

POST/cms/channels/{channelId}/banners

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

Parameters

NameTypeDescription
channelIdrequiredstring, path

Request body application/json

FieldTypeDescription
placementstringAt most 60 characters. Example: "home-hero"
starts_atstringShow from (ISO date-time)
ends_atstringShow until (ISO date-time)
sortnumberMinimum 0, maximum 10000.
namerequiredstringAt most 255 characters. Example: "Autumn sale"
statusstringOne of: "draft", "published".

Response

201. The payload in data is of type object.

Get a banner with its images

GET/cms/channels/{channelId}/banners/{bannerId}

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

Parameters

NameTypeDescription
channelIdrequiredstring, path
bannerIdrequiredstring, path

Response

200. The payload in data is of type object.

Update a banner (name, placement, window, status)

PATCH/cms/channels/{channelId}/banners/{bannerId}

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

Parameters

NameTypeDescription
channelIdrequiredstring, path
bannerIdrequiredstring, path

Request body application/json

FieldTypeDescription
placementstringAt most 60 characters. Example: "home-hero"
starts_atstringShow from (ISO date-time)
ends_atstringShow until (ISO date-time)
sortnumberMinimum 0, maximum 10000.
namestringAt most 255 characters.
statusstringOne of: "draft", "published", "archived".

Response

200. The payload in data is of type object.

Delete a banner and its images

DELETE/cms/channels/{channelId}/banners/{bannerId}

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

Parameters

NameTypeDescription
channelIdrequiredstring, path
bannerIdrequiredstring, path

Response

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

Add an image/slide to a banner

POST/cms/channels/{channelId}/banners/{bannerId}/images

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

Parameters

NameTypeDescription
channelIdrequiredstring, path
bannerIdrequiredstring, path

Request body application/json

FieldTypeDescription
titlestringAt most 255 characters.
imagestringdirectus_files id
descriptionstringRich text (sanitized server-side) At most 5000 characters.
linkstringExample: "/shop"
button_textstringAt most 60 characters.
sortnumberMinimum 0, maximum 10000.
statusstringOne of: "draft", "published", "archived".

Response

201. The payload in data is of type object.

Update a banner image

PATCH/cms/channels/{channelId}/banners/{bannerId}/images/{imageId}

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

Parameters

NameTypeDescription
channelIdrequiredstring, path
bannerIdrequiredstring, path
imageIdrequirednumber, path

Request body application/json

FieldTypeDescription
titlestringAt most 255 characters.
imagestringdirectus_files id
descriptionstringRich text (sanitized server-side) At most 5000 characters.
linkstringExample: "/shop"
button_textstringAt most 60 characters.
sortnumberMinimum 0, maximum 10000.
statusstringOne of: "draft", "published", "archived".

Response

200. The payload in data is of type object.

Delete a banner image

DELETE/cms/channels/{channelId}/banners/{bannerId}/images/{imageId}

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

Parameters

NameTypeDescription
channelIdrequiredstring, path
bannerIdrequiredstring, path
imageIdrequirednumber, path

Response

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