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

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

All groups

List the channel's testimonials (all statuses)

GET/cms/channels/{channelId}/testimonials

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 testimonial

POST/cms/channels/{channelId}/testimonials

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

Parameters

NameTypeDescription
channelIdrequiredstring, path

Request body application/json

FieldTypeDescription
rolestringAt most 120 characters. Example: "Regular customer"
ratingnumberMinimum 1, maximum 5.
avatarstringdirectus_files id of the avatar
sortnumberMinimum 0, maximum 10000.
namerequiredstringAt most 120 characters. Example: "Zara Reid"
contentrequiredstringAt most 2000 characters. Example: "Best clinic in Leeds!"
statusstringOne of: "draft", "published".

Response

201. The payload in data is of type object.

Update a testimonial (incl. status)

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

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

Parameters

NameTypeDescription
channelIdrequiredstring, path
idrequirednumber, path

Request body application/json

FieldTypeDescription
rolestringAt most 120 characters. Example: "Regular customer"
ratingnumberMinimum 1, maximum 5.
avatarstringdirectus_files id of the avatar
sortnumberMinimum 0, maximum 10000.
namestringAt most 120 characters.
contentstringAt most 2000 characters.
statusstringOne of: "draft", "published", "archived".

Response

200. The payload in data is of type object.

Delete a testimonial

DELETE/cms/channels/{channelId}/testimonials/{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.