Skip to main content
PUT
/
cabinet
/
admin
/
menu-layout
Update Menu Layout
curl --request PUT \
  --url https://api.example.com/cabinet/admin/menu-layout \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "rows": [
    {
      "id": "<string>",
      "max_per_row": 2,
      "buttons": [
        {
          "id": "<string>",
          "type": "builtin",
          "style": "primary",
          "icon_custom_emoji_id": "",
          "enabled": true,
          "labels": {},
          "url": "<string>",
          "open_in": "external"
        }
      ]
    }
  ]
}
'
{
  "rows": [
    {
      "id": "<string>",
      "max_per_row": 2,
      "buttons": [
        {
          "id": "<string>",
          "type": "builtin",
          "style": "primary",
          "icon_custom_emoji_id": "",
          "enabled": true,
          "labels": {},
          "url": "<string>",
          "open_in": "external"
        }
      ]
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Full menu configuration submitted by the frontend.

rows
RowConfig · object[]
required
Maximum array length: 20

Response

Successful Response

Full merged menu configuration returned to the frontend.

rows
RowConfig · object[]
required