Backend menu

Overview

Discover admin menu items and manage their visibility rules. Routes use /wp-json/aam/v2 on a standard WordPress installation.

Endpoints

Method Route Input Purpose
GET /backend-menu — Get menu items.
PATCH (Premium) /backend-menu effect Set access mode.
DELETE /backend-menu — Reset permissions.
GET /backend-menu/{id} id Get menu item.
PATCH /backend-menu/{id} id, effect Update menu item permission.
DELETE /backend-menu/{id} id Delete menu item permission.

PATCH rows also accept POST and PUT because WordPress registers them as editable routes. The Input column lists route-specific parameters. A path parameter in {braces} is required. WordPress validates body and query parameters against the registered route schema. Premium rows require the Complete Package add-on.

Parameter guide

The route table shows which operation uses each parameter. Path parameters are required; other requirements depend on the operation.

Parameter Type Meaning
effect string Either menu is restricted or not.
id string Base64 encoded backend menu unique slug.

Access level and authorization

Most routes accept access_level=role&role_id=editor, access_level=user&user_id=42, access_level=visitor, or access_level=default. This selects whose rules you read or change. A path ID or body value selects the target.

Required permission: aam_manager and aam_manage_backend_menu. See Authentication and Error handling.

The id path parameter is AAM’s encoded menu identifier. Fetch the collection first and use the returned ID.

Example

GET /wp-json/aam/v2/backend-menu?access_level=role&role_id=editor
Authorization: Basic <base64 username:application-password>

This lists admin menu items and their access decisions for Editors.