Post Statuses Edit

Schema Schema

The schema defines all the fields that exist for a status object.

name

string
The title for the status.

Read only

Context: embed, view, edit

private

boolean
Whether posts with this status should be private.

Read only

Context: edit

protected

boolean
Whether posts with this status should be protected.

Read only

Context: edit

public

boolean
Whether posts of this status should be shown in the front end of the site.

Read only

Context: view, edit

queryable

boolean
Whether posts with this status should be publicly-queryable.

Read only

Context: view, edit

show_in_list

boolean
Whether to include posts in the edit listing for their post type.

Read only

Context: edit

slug

string
An alphanumeric identifier for the status.

Read only

Context: embed, view, edit

Example Request Example Request

$ curl -X OPTIONS -i http://demo.wp-api.org/wp-json/wp/v2/statuses

Top ↑

Retrieve a Status Retrieve a Status

Top ↑

Arguments Arguments

context Scope under which the request is made; determines fields present in response.

Default: view

One of: view, embed, edit

Top ↑

Definition Definition

GET /wp/v2/statuses

Example Request Example Request

$ curl http://demo.wp-api.org/wp-json/wp/v2/statuses

Top ↑

Retrieve a Status Retrieve a Status

Top ↑

Arguments Arguments

status An alphanumeric identifier for the status.
context Scope under which the request is made; determines fields present in response.

Default: view

One of: view, embed, edit

Top ↑

Definition Definition

GET /wp/v2/statuses/<status>

Example Request Example Request

$ curl http://demo.wp-api.org/wp-json/wp/v2/statuses/<status>