Nav_Menu_Item Revisions Edit

Schema

The schema defines all the fields that exist within a nav_menu_item revision record. Any response from these endpoints can be expected to contain the fields below unless the `_filter` query parameter is used or the schema field only appears in a specific context.

author

integer
The ID for the author of the revision.

Context: view, edit, embed

date

string,
datetime (details)
The date the revision was published, in the site's timezone.

Context: view, edit, embed

date_gmt

string,
datetime (details)
The date the revision was published, as GMT.

Context: view, edit

guid

string
GUID for the revision, as it exists in the database.

Context: view, edit

id

integer
Unique identifier for the revision.

Context: view, edit, embed

modified

string,
datetime (details)
The date the revision was last modified, in the site's timezone.

Context: view, edit

modified_gmt

string,
datetime (details)
The date the revision was last modified, as GMT.

Context: view, edit

parent

integer
The ID for the parent of the revision.

Context: view, edit, embed

slug

string
An alphanumeric identifier for the revision unique to its type.

Context: view, edit, embed

title

string or object
The title for the object.

Context: view, edit, embed

Top ↑

Retrieve a Nav_Menu_Item Revision

Top ↑

Definition & Example Request

GET /wp/v2/menu-items/<id>/autosaves

Query this endpoint to retrieve a specific nav_menu_item revision record.

$ curl https://example.com/wp-json/wp/v2/menu-items/<id>/autosaves

Top ↑

Arguments

parent The ID for the parent of the autosave.
context Scope under which the request is made; determines fields present in response.

Default: view

One of: view, embed, edit

Top ↑

Create a Nav_Menu_Item Revision

Top ↑

Arguments

parent The ID for the parent of the object.
title The title for the object.
type The family of objects originally represented, such as "post_type" or "taxonomy".
One of: taxonomy, post_type, post_type_archive, custom
status A named status for the object.
One of: publish, future, draft, pending, private
attr_title Text for the title attribute of the link element for this menu item.
classes Class names for the link element of this menu item.
description The description of this menu item.
menu_order The DB ID of the nav_menu_item that is this item's menu parent, if any, otherwise 0.
object The type of object originally represented, such as "category", "post", or "attachment".
object_id The database ID of the original object this menu item represents, for example the ID for posts or the term_id for categories.
target The target attribute of the link element for this menu item.
One of: _blank,
url The URL to which this menu item points.
xfn The XFN relationship expressed in the link of this menu item.
menus The terms assigned to the object in the nav_menu taxonomy.
meta Meta fields.

Top ↑

Definition

POST /wp/v2/menu-items/<id>/autosaves

Top ↑

Retrieve a Nav_Menu_Item Revision

Top ↑

Definition & Example Request

GET /wp/v2/menu-items/<parent>/autosaves/<id>

Query this endpoint to retrieve a specific nav_menu_item revision record.

$ curl https://example.com/wp-json/wp/v2/menu-items/<parent>/autosaves/<id>

Top ↑

Arguments

parent The ID for the parent of the autosave.
id The ID for the autosave.
context Scope under which the request is made; determines fields present in response.

Default: view

One of: view, embed, edit