Skip to main content

reorderMenus

Requires permission settings:appearance:update.

Set the order of the organization's menus from a list of menu IDs. Every ID must belong to the organization. Needs the appearance settings update permission.

Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.

Example:

mutation ReorderMenus($menuIds: [ID!]!) {
reorderMenus(menuIds: $menuIds) {
id
name
createdAt
deletedAt
deletedBy
description
children {
id
name
createdAt
deletedAt
deletedBy
description
}
}
}

Variables:

{
"menuIds": [
"id"
]
}

Response:

{
"data": {
"reorderMenus": [
{
"id": "id",
"name": "string",
"createdAt": "2025-01-15T00:00:00Z",
"deletedAt": "2025-01-15T00:00:00Z",
"deletedBy": "string",
"description": "string",
"children": [
{
"id": "id",
"name": "string",
"createdAt": "2025-01-15T00:00:00Z",
"deletedAt": "2025-01-15T00:00:00Z",
"deletedBy": "string",
"description": "string"
}
]
}
]
}
}
reorderMenus(
menuIds: [ID!]!
): [Menu!]!

Arguments​

The menu IDs in the new order.

Type​

A menu item.