Query parameters
limitinteger | default: 10
Limit the number of objects to return, ranging between 1 and 20.
pageinteger | default: 1
The current page used to display the pagination results.
expandstring[]
Expand the response for the given items. Expand array accepts list
.
Response
objectstring
This will always contain list
for this endpoint.
dataarray
An array of up to limit
menu resources. If no menus are available, an empty array is returned.
metaobject
Additional information about the list.
import Blutui from 'blutui'
const blutui = new Blutui('ey....')
blutui.project('one').admin.menus.list()
Response
{
"object": "list",
"data": [
{
"id": "9a5b0b29-a4f8-4df6-bf53-f282af312686",
"object": "menu",
"name": "Primary Menu",
"handle": "primary-menu",
"items": [
{
"id": "9a5b0b29-a5f4-4171-b50f-d0f6b61730e6",
"object": "menu_item",
"label": "About",
"url": "/about",
"active": true,
"is_new_tab": false,
"order": 0,
"items": [],
"created_at": 1711305486,
"updated_at": 1711305486
}
],
"created_at": 1711305486,
"updated_at": 1711305486
},
{...},
{...}
],
"meta": {
"has_more": false,
"current_page": 1,
"from": 1,
"to": 3,
"total": 3,
"per_page": 10,
"last_page": 1
}
}