CMS · testimonials
4 routes. Paths are relative to https://api.intersink.com/v1.
- GET/cms/channels/{channelId}/testimonialsList the channel's testimonials (all statuses)
- POST/cms/channels/{channelId}/testimonialsCreate a testimonial
- PATCH/cms/channels/{channelId}/testimonials/{id}Update a testimonial (incl. status)
- DELETE/cms/channels/{channelId}/testimonials/{id}Delete a testimonial
List the channel's testimonials (all statuses)
GET/cms/channels/{channelId}/testimonials
Needs a signed-in user (Bearer token or access_token cookie).
Parameters
| Name | Type | Description |
|---|---|---|
| channelIdrequired | string, path | |
| page | number, query | Minimum 1. |
| limit | number, query | Minimum 1, maximum 100. |
| status | string, query | One of: "draft", "published", "archived". |
| q | string, query | Search 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
| Name | Type | Description |
|---|---|---|
| channelIdrequired | string, path |
Request body application/json
| Field | Type | Description |
|---|---|---|
| role | string | At most 120 characters. Example: "Regular customer" |
| rating | number | Minimum 1, maximum 5. |
| avatar | string | directus_files id of the avatar |
| sort | number | Minimum 0, maximum 10000. |
| namerequired | string | At most 120 characters. Example: "Zara Reid" |
| contentrequired | string | At most 2000 characters. Example: "Best clinic in Leeds!" |
| status | string | One 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
| Name | Type | Description |
|---|---|---|
| channelIdrequired | string, path | |
| idrequired | number, path |
Request body application/json
| Field | Type | Description |
|---|---|---|
| role | string | At most 120 characters. Example: "Regular customer" |
| rating | number | Minimum 1, maximum 5. |
| avatar | string | directus_files id of the avatar |
| sort | number | Minimum 0, maximum 10000. |
| name | string | At most 120 characters. |
| content | string | At most 2000 characters. |
| status | string | One 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
| Name | Type | Description |
|---|---|---|
| channelIdrequired | string, path | |
| idrequired | number, path |
Response
200. The payload in data is not described in the spec yet.