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

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

All groups

List the channel's menus

GET/cms/channels/{channelId}/menus

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

Parameters

NameTypeDescription
channelIdrequiredstring, path

Response

200. data is object[].

Create a menu

POST/cms/channels/{channelId}/menus

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

Parameters

NameTypeDescription
channelIdrequiredstring, path

Request body application/json

FieldTypeDescription
namerequiredstringAt most 120 characters. Example: "Main menu"
locationstringWhere it renders At most 60 characters. Example: "header"
statusstringOne of: "draft", "published".
sortnumberMinimum 0, maximum 10000.

Response

201. The payload in data is of type object.

Get a menu with its item tree

GET/cms/channels/{channelId}/menus/{menuId}

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

Parameters

NameTypeDescription
channelIdrequiredstring, path
menuIdrequirednumber, path

Response

200. The payload in data is of type object.

Update a menu (name, location, status)

PATCH/cms/channels/{channelId}/menus/{menuId}

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

Parameters

NameTypeDescription
channelIdrequiredstring, path
menuIdrequirednumber, path

Request body application/json

FieldTypeDescription
namestringAt most 120 characters.
locationstringAt most 60 characters. Example: "footer"
statusstringOne of: "draft", "published", "archived".
sortnumberMinimum 0, maximum 10000.

Response

200. The payload in data is of type object.

Delete a menu and all its items

DELETE/cms/channels/{channelId}/menus/{menuId}

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

Parameters

NameTypeDescription
channelIdrequiredstring, path
menuIdrequirednumber, path

Response

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

Add a menu item

POST/cms/channels/{channelId}/menus/{menuId}/items

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

Parameters

NameTypeDescription
channelIdrequiredstring, path
menuIdrequirednumber, path

Request body application/json

FieldTypeDescription
labelrequiredstringAt most 120 characters. Example: "Shop"
urlrequiredstringExample: "/shop"
targetstringOne of: "_self", "_blank".
parent_idnumberParent item id (same menu) or null Minimum 1.
sortnumberMinimum 0, maximum 10000.
statusstringOne of: "draft", "published", "archived".

Response

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

Update / move a menu item

PATCH/cms/channels/{channelId}/menus/{menuId}/items/{itemId}

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

Parameters

NameTypeDescription
channelIdrequiredstring, path
menuIdrequirednumber, path
itemIdrequirednumber, path

Request body application/json

FieldTypeDescription
labelstringAt most 120 characters.
urlstringExample: "/about-us"
targetstringOne of: "_self", "_blank".
parent_idnumberNew parent id, or null for top level Minimum 1.
sortnumberMinimum 0, maximum 10000.
statusstringOne of: "draft", "published", "archived".

Response

200. The payload in data is of type object.

Delete a menu item and its sub-items

DELETE/cms/channels/{channelId}/menus/{menuId}/items/{itemId}

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

Parameters

NameTypeDescription
channelIdrequiredstring, path
menuIdrequirednumber, path
itemIdrequirednumber, path

Response

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

Re-parent/re-sort every item of the menu

PUT/cms/channels/{channelId}/menus/{menuId}/items/order

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

Parameters

NameTypeDescription
channelIdrequiredstring, path
menuIdrequirednumber, path

Request body application/json

FieldTypeDescription
itemsrequiredobject[]Every item of the menu with its new parent and sort
items[].idrequirednumberMinimum 1.
items[].parent_idnumberMinimum 1.
items[].sortrequirednumberMinimum 0, maximum 10000.

Response

200. The payload in data is of type object.