Skip to main content
POST
Discard Draft Changes
Resets draft or modified content back to its last published version. This is useful when you want to abandon changes and return to a known good state.

Path Parameters

organizationId
string
required
Organization ID
projectId
string
required
Project ID
id
string
required
Content ID

Response

Returns the content restored to its last published state.

Requirements

  • Content must have status draft or modified
  • Content must have been previously published (has a lastPublishedVersion)

Error Responses

Invalid Status

Never Published

If the content was unpublished before modifications, discarding will return it to unpublished status (not published).

Code Examples