Content

Overview

List content and manage post, term, post type, and taxonomy rules. Routes use /wp-json/aam/v2 on a standard WordPress installation.

Endpoints

Method Route Input Purpose
PATCH (Premium) /content/default-term term_id, is_default, taxonomy, post_type Update default term.
GET /content/{resource_type}/{id} resource_type, id Get content resource.
PATCH /content/{resource_type}/{id} resource_type, id, permissions Update content permissions.
DELETE /content/{resource_type}/{id} resource_type, id Reset content resource.
GET /post/{id} id Get post.
PATCH /post/{id} id, permissions Update post permissions.
DELETE /post/{id} id Reset post permissions.
PATCH /post/{id}/{permission} id, permission, effect Set post permission.
GET (Premium) /post_type/{type} type Get post type.
PATCH (Premium) /post_type/{type} type, permissions Update post type permissions.
DELETE (Premium) /post_type/{type} type Reset post type permissions.
PATCH (Premium) /post_type/{type}/{permission} type, permission, effect Set post type permission.
GET /post_types return_all Get post types.
GET /posts post_type, search, offset, per_page Get posts.
GET /taxonomies — Get taxonomies.
GET (Premium) /taxonomy/{taxonomy} taxonomy Get taxonomy.
PATCH (Premium) /taxonomy/{taxonomy} taxonomy, permissions Update taxonomy permissions.
DELETE (Premium) /taxonomy/{taxonomy} taxonomy Reset taxonomy permissions.
PATCH (Premium) /taxonomy/{taxonomy}/{permission} taxonomy, permission, effect Set taxonomy permission.
GET (Premium) /term/{id} id, taxonomy, post_type Get term.
PATCH (Premium) /term/{id} id, taxonomy, post_type, permissions Update term permissions.
DELETE (Premium) /term/{id} id, taxonomy, post_type Reset term permissions.
PATCH (Premium) /term/{id}/{permission} id, permission, taxonomy, post_type, effect Set term permission.
GET /terms taxonomy, post_type, search, offset, per_page Get terms.

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 Permission effect: allow or deny.
id number / string Post or term ID; generic content routes also accept a resource slug.
is_default boolean Whether the term becomes the default.
offset number Pagination offset.
per_page number Pagination limit per page.
permission string Permission.
permissions array Permission objects for a bulk update.
post_type string Scope for specific post type.
return_all boolean Include all post types or only public.
search string Search string.
taxonomy string Scope for specific taxonomy.
term_id mixed Either a single term ID or array of IDs.
type string Unique post type identifier.

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_content. See Authentication and Error handling.

resource_type accepts post_type, taxonomy, or term. id identifies the selected resource; in /post/{id} it identifies a post. type identifies a post type, and taxonomy identifies a taxonomy. The premium add-on registers post type, taxonomy, and term mutation routes.

Example

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

This lists pages and their access information for Editors; post_type selects the content, while access_level selects whose rules to inspect.