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

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

All groups

List the channel's blog posts (all statuses)

GET/cms/channels/{channelId}/posts

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

Parameters

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

Response

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

Create a blog post (body is sanitized)

POST/cms/channels/{channelId}/posts

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

Parameters

NameTypeDescription
channelIdrequiredstring, path

Request body application/json

FieldTypeDescription
excerptstringAt most 300 characters.
body_htmlstringRich text; sanitized on save At most 100000 characters.
coverstringdirectus_files id of the cover image
categorystringAt most 60 characters. Example: "News"
tagsstring[]At most 20 items.
featuredboolean
publish_atstringRequired when status is scheduled
seo_titlestringAt most 70 characters.
seo_descriptionstringAt most 170 characters.
titlerequiredstringAt most 200 characters. Example: "Our autumn collection is here"
slugstringLower-case kebab; made from the title when omitted At most 120 characters. Example: "autumn-collection"
statusstringOne of: "draft", "scheduled", "published", "archived".

Response

201. The payload in data is of type object.

One blog post with its body

GET/cms/channels/{channelId}/posts/{id}

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

Parameters

NameTypeDescription
channelIdrequiredstring, path
idrequirednumber, path

Response

200. The payload in data is of type object.

Update a blog post (incl. status / schedule)

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

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

Parameters

NameTypeDescription
channelIdrequiredstring, path
idrequirednumber, path

Request body application/json

FieldTypeDescription
excerptstringAt most 300 characters.
body_htmlstringRich text; sanitized on save At most 100000 characters.
coverstringdirectus_files id of the cover image
categorystringAt most 60 characters. Example: "News"
tagsstring[]At most 20 items.
featuredboolean
publish_atstringRequired when status is scheduled
seo_titlestringAt most 70 characters.
seo_descriptionstringAt most 170 characters.
titlestringAt most 200 characters.
slugstringAt most 120 characters.
statusstringOne of: "draft", "scheduled", "published", "archived".

Response

200. The payload in data is of type object.

Delete a blog post

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

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

Parameters

NameTypeDescription
channelIdrequiredstring, path
idrequirednumber, path

Response

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

Upload the post's cover image (field: image)

POST/cms/channels/{channelId}/posts/{id}/cover

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

Parameters

NameTypeDescription
channelIdrequiredstring, path
idrequirednumber, path

Response

201. The payload in data is of type object.