page-revisions
Edit
Topics
Schema Schema
The schema defines all the fields that exist for a page-revision object.
authorinteger |
The ID for the author of the object.
Context: |
datestring, datetime ([details](https://core.trac.wordpress.org/ticket/41032)) |
The date the object was published, in the site's timezone.
Context: |
date_gmtstring, datetime ([details](https://core.trac.wordpress.org/ticket/41032)) |
The date the object was published, as GMT.
Context: |
guidobject |
The globally unique identifier for the object.
Read only Context: |
idinteger |
Unique identifier for the object.
Context: |
modifiedstring, datetime ([details](https://core.trac.wordpress.org/ticket/41032)) |
The date the object was last modified, in the site's timezone.
Context: |
modified_gmtstring, datetime ([details](https://core.trac.wordpress.org/ticket/41032)) |
The date the object was last modified, as GMT.
Context: |
parentinteger |
The ID for the parent of the object.
Context: |
slugstring |
An alphanumeric identifier for the object unique to its type.
Context: |
titleobject |
The title for the object.
Context: |
contentobject |
The content for the object.
Context: |
excerptobject |
The excerpt for the object.
Context: |
Example Request Example Request
$ curl -X OPTIONS -i http://demo.wp-api.org/wp-json/wp/v2/pages/<parent>/revisions
List Page-revisions List Page-revisions
Arguments Arguments
parent
|
The ID for the parent of the object. |
context
|
Scope under which the request is made; determines fields present in response.
Default: One of: |
Definition Definition
GET /wp/v2/pages/<parent>/revisions
Example Request Example Request
$ curl http://demo.wp-api.org/wp-json/wp/v2/pages/<parent>/revisions
Retrieve a Page-revision Retrieve a Page-revision
Arguments Arguments
parent
|
The ID for the parent of the object. |
id
|
Unique identifier for the object. |
context
|
Scope under which the request is made; determines fields present in response.
Default: One of: |
Definition Definition
GET /wp/v2/pages/<parent>/revisions/<id>
Example Request Example Request
$ curl http://demo.wp-api.org/wp-json/wp/v2/pages/<parent>/revisions/<id>
Delete a Page-revision Delete a Page-revision
Arguments Arguments
parent
|
The ID for the parent of the object. |
id
|
Unique identifier for the object. |
force
|
Required to be true, as revisions do not support trashing. |
Definition Definition
DELETE /wp/v2/pages/<parent>/revisions/<id>
Example Request Example Request
$ curl -X DELETE http://demo.wp-api.org/wp-json/wp/v2/pages/<parent>/revisions/<id>