Core operations

Overview

Preload AAM data and import, export, or reset AAM configuration. Routes use /wp-json/aam/v2 on a standard WordPress installation.

Endpoints

Method Route Input Purpose
GET /core/export — Export.
PATCH /core/import — Import.
DELETE /core/reset — Reset.
GET /preload access_level, role_id, user_id, screen Preload.

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.

Parameter guide

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

Parameter Type Meaning
access_level string Access level.
role_id string Role id.
screen string Screen.
user_id integer User id.

Access level and authorization

GET /preload requires access_level (role, user, visitor, or default) and the matching ID for a role or user. Export, import, and reset do not use an access-level selector.

Required permission: aam_manager; export, import, and reset also require an administrator context. See Authentication and Error handling.

These are administrative operations. Treat DELETE /core/reset and POST /core/import as changes to AAM state.

Example

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

This preloads the AAM workspace. Add the required access_level and its ID where applicable.