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

Path Parameters

string
required
Organization ID
string
required
Project ID
string
required
Content Type ID

Response

Returns the content type restored to its last published state.

Requirements

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

Error Responses

Invalid Status

Never Published

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

Code Examples