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

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

All groups

List the channel's FAQ categories

GET/cms/channels/{channelId}/faq/categories

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

Parameters

NameTypeDescription
channelIdrequiredstring, path

Response

200. data is object[].

Create a FAQ category (max 3 levels deep)

POST/cms/channels/{channelId}/faq/categories

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

Parameters

NameTypeDescription
channelIdrequiredstring, path

Request body application/json

FieldTypeDescription
slugstringAt most 120 characters. Example: "bookings"
typestringAudience type At most 60 characters. Example: "business"
parent_idnumberParent category id (same channel) Minimum 1.
descriptionstringAt most 2000 characters.
namerequiredstringAt most 255 characters. Example: "Bookings"

Response

201. The payload in data is of type object.

Update / move a FAQ category

PATCH/cms/channels/{channelId}/faq/categories/{groupId}

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

Parameters

NameTypeDescription
channelIdrequiredstring, path
groupIdrequirednumber, path

Request body application/json

FieldTypeDescription
slugstringAt most 120 characters. Example: "bookings"
typestringAudience type At most 60 characters. Example: "business"
parent_idnumberParent category id (same channel) Minimum 1.
descriptionstringAt most 2000 characters.
namestringAt most 255 characters.

Response

200. The payload in data is of type object.

Delete an empty FAQ category

DELETE/cms/channels/{channelId}/faq/categories/{groupId}

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

Parameters

NameTypeDescription
channelIdrequiredstring, path
groupIdrequirednumber, path

Response

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

List the channel's FAQs (all statuses)

GET/cms/channels/{channelId}/faq/items

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
group_idnumber, queryOnly this category Minimum 1.

Response

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

Create a FAQ (answer is sanitized HTML)

POST/cms/channels/{channelId}/faq/items

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

Parameters

NameTypeDescription
channelIdrequiredstring, path

Request body application/json

FieldTypeDescription
descriptionstringAnswer as rich text, sanitized server-side At most 20000 characters.
slugstringAt most 120 characters. Example: "how-do-i-reschedule"
sortnumberMinimum 0, maximum 10000.
faq_group_idrequirednumberCategory (faq_group) id of this channel Minimum 1.
titlerequiredstringAt most 255 characters. Example: "How do I reschedule?"
statusstringOne of: "draft", "published".

Response

201. The payload in data is of type object.

Update a FAQ (incl. publish/unpublish via status)

PATCH/cms/channels/{channelId}/faq/items/{faqId}

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

Parameters

NameTypeDescription
channelIdrequiredstring, path
faqIdrequirednumber, path

Request body application/json

FieldTypeDescription
descriptionstringAnswer as rich text, sanitized server-side At most 20000 characters.
slugstringAt most 120 characters. Example: "how-do-i-reschedule"
sortnumberMinimum 0, maximum 10000.
faq_group_idnumberMinimum 1.
titlestringAt most 255 characters.
statusstringOne of: "draft", "published", "archived".

Response

200. The payload in data is of type object.

Delete a FAQ

DELETE/cms/channels/{channelId}/faq/items/{faqId}

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

Parameters

NameTypeDescription
channelIdrequiredstring, path
faqIdrequirednumber, path

Response

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