Schema
The schema defines all the fields that exist for a posts-revision object.
authorinteger |
The id for the author of the object. Context: |
datestring, datetime (ISO8601) |
The date the object was published. Context: |
date_gmtstring, datetime (ISO8601) |
The date the object was published, as GMT. Context: |
guidstring |
GUID for the object, as it exists in the database. Context: |
idinteger |
Unique identifier for the object. Context: |
modifiedstring, datetime (ISO8601) |
The date the object was last modified. Context: |
modified_gmtstring, datetime (ISO8601) |
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: |
titlestring |
Title for the object, as it exists in the database. Context: |
contentstring |
Content for the object, as it exists in the database. Context: |
excerptstring |
Excerpt for the object, as it exists in the database. Context: |
Example Request
$ curl -X OPTIONS -i http://demo.wp-api.org/wp-json
List Post Revisions
Arguments
context |
Scope under which the request is made; determines fields present in response.
Default: One of: |
Definition
GET /wp/v2/posts/<parent_id>/revisions
Example Request
$ curl http://demo.wp-api.org/wp-json/wp/v2/posts/<parent_id>/revisions
Retrieve a Post Revision
Arguments
context |
Scope under which the request is made; determines fields present in response.
Default: One of: |
Definition
GET /wp/v2/posts/<parent_id>/revisions/<id>
Example Request
$ curl http://demo.wp-api.org/wp-json/wp/v2/posts/<parent_id>/revisions/<id>
Delete a Post Revision
There are no arguments for this enpdoint.
Definition
DELETE /wp/v2/posts/<parent_id>/revisions/<id>
Example Request
$ curl -X DELETE http://demo.wp-api.org/wp-json/wp/v2/posts/<parent_id>/revisions/<id>