Sorry, no results found for "".

Show examples in:
Javascript HTTP
Endpoint info
Available examples

Content Management API > Schema Menu Item

List all schema menu items

Query parameters

filter object
ids string

IDs to fetch, comma separated

Example: "42,554"

Returns

Returns an array of resource objects of type schema_menu_item.

Examples

GET https://site-api.datocms.com/schema-menu-items HTTP/1.1
Authorization: Bearer YOUR-API-TOKEN
Accept: application/json
X-Api-Version: 3
Terminal window
curl -g 'https://site-api.datocms.com/schema-menu-items' \
\
-H "Authorization: Bearer YOUR-API-TOKEN" \
-H "Accept: application/json" \
-H "X-Api-Version: 3"
await fetch("https://site-api.datocms.com/schema-menu-items", {
headers: {
Authorization: "Bearer YOUR-API-TOKEN",
Accept: "application/json",
"X-Api-Version": "3",
},
});
HTTP/1.1 200 OK
Content-Type: application/json
Cache-Control: cache-control: max-age=0, private, must-revalidate
X-RateLimit-Limit: 30
X-RateLimit-Remaining: 28
{
"data": [
{
"type": "schema_menu_item",
"id": "uinr2zfqQLeCo_1O0-ao-Q",
"relationships": {
"item_type": {
"data": {
"type": "item_type",
"id": "DxMaW10UQiCmZcuuA-IkkA"
}
},
"parent": {
"data": null
},
"children": {
"data": [
{
"type": "schema_menu_item",
"id": "uinr2zfqQLeCo_1O0-ao-Q"
}
]
}
},
"attributes": {
"label": "Posts",
"position": 1,
"kind": "item_type"
}
}
]
}