Show examples in:
JavascriptHTTP
Content Management API > Menu Item

Menu Item

In DatoCMS you can organize the different Models present in your administrative area reordering and grouping them, so that their purpose will be more clear to the final editor.

Object payload

idstring

RFC 4122 UUID of menu item expressed in URL-safe base64 format

Example:"uinr2zfqQLeCo_1O0-ao-Q"
typestring

Must be exactly "menu_item".

attributes.labelstring

The label of the menu item

Example:"Posts"
attributes.positioninteger

Ordering index

Example:1
attributes.external_urlnull, string

The URL to which the menu item points to

attributes.open_in_new_tabboolean

Opens link in new tab (to be used together with external_url)

relationships.item_type.data

Item type associated with the menu item

Type:<a href="/docs/content-management-api/resources/item_type">ResourceLinkage&#x3C;"item_type"></a>, null
relationships.item_type_filter.data

Item type filter associated with the menu item (to be used together with item_type relationship)

Type:<a href="/docs/content-management-api/resources/item_type_filter">ResourceLinkage&#x3C;"item_type_filter"></a>, null
relationships.parent.data

Parent menu item

Type:null, <a href="/docs/content-management-api/resources/menu_item">ResourceLinkage&#x3C;"menu_item"></a>
relationships.children.data

Underlying menu items

Type:Array&#x3C;<a href="/docs/content-management-api/resources/menu_item">ResourceLinkage&#x3C;"menu_item"></a>>

Available endpoints