Block Revisions
Edit
Topics
Schema
The schema defines all the fields that exist within a Block 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 object.
Context: |
date string, datetime (details) |
The date the object was published, in the site's timezone.
Context: |
date_gmt string, datetime (details) |
The date the object was published, as GMT.
Context: |
guid object |
The globally unique identifier for the object.
Read only Context: |
id integer |
Unique identifier for the object.
Context: |
modified string, datetime (details) |
The date the object was last modified, in the site's timezone.
Context: |
modified_gmt string, datetime (details) |
The date the object was last modified, as GMT.
Context: |
parent integer |
The ID for the parent of the object.
Context: |
slug string |
An alphanumeric identifier for the object unique to its type.
Context: |
title object |
The title for the object.
Context: |
content object |
The content for the object.
Context: |
preview_link string, uri |
Preview link for the post.
Read only Context: |
Retrieve a Block Revision
Definition & Example Request
GET /wp/v2/blocks/<id>/autosaves
Query this endpoint to retrieve a specific Block Revision record.
$ curl https://example.com/wp-json/wp/v2/blocks/<id>/autosaves
Create a Block Revision
Arguments
parent
|
The ID for the parent of the object. |
date
|
The date the object was published, in the site's timezone. |
date_gmt
|
The date the object was published, as GMT. |
slug
|
An alphanumeric identifier for the object unique to its type. |
status
|
A named status for the object. One of: publish , future , draft , pending , private
|
password
|
A password to protect access to the content and excerpt. |
title
|
The title for the object. |
content
|
The content for the object. |
template
|
The theme file to use to display the object. |
Definition
POST /wp/v2/blocks/<id>/autosaves
Retrieve a Block Revision
Definition & Example Request
GET /wp/v2/blocks/<parent>/autosaves/<id>
Query this endpoint to retrieve a specific Block Revision record.
$ curl https://example.com/wp-json/wp/v2/blocks/<parent>/autosaves/<id>