Settings
Overview
Read or update AAM settings for an access level. Routes use /wp-json/aam/v2 on a standard WordPress installation.
Endpoints
| Method | Route | Input | Purpose |
|---|---|---|---|
| GET | /settings |
— | Get settings. |
| POST | /settings |
— | Set settings. |
| DELETE | /settings |
— | Reset settings. |
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.
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_settings. See Authentication and Error handling.
POST /settings takes a JSON object as the complete settings value and returns {"success": true} on a successful write. With an access level, it replaces that level’s settings. Without an access level, it writes the global settings store; DELETE follows the same scope rule.
Example
GET /wp-json/aam/v2/settings?access_level=role&role_id=editor
Authorization: Basic <base64 username:application-password>
This reads AAM settings for the Editor access level.