Discard Draft Changes
Content Types
Discard Draft Changes
Discard unpublished changes and revert to the last published version
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
Organization ID
Project ID
Content Type ID
Response
Returns the content type restored to its last published state.Requirements
- Content type must have status
draftormodified - 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).