Skip to main content
POST
Discard a page's unpublished draft changes

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

If-Match
string | null

Path Parameters

team_id
string
required
hub_id
string
required
page_id
string
required

Response

The draft was reset. The body is the same page_draft_trees envelope PUT .../tree returns, carrying the new draft_version and either the restored tree, or tree: null when the page has never been published and its type is not editor-owned — see the operation description.

Top-level JSON:API response envelope for PUT .../pages/{id}/tree.

data
DraftTreeResource · object
required

JSON:API resource object for a page draft tree (write response).