Discard Changes
Components
Discard Changes
Discard unpublished changes and revert to last published version
POST
Discard Changes
Path Parameters
Organization ID
Project ID
Component ID
Request Body
No request body required.Behavior
Discard resets a component to its last published version:- Only works for components with
draftormodifiedstatus - Component must have been previously published (have a
lastPublishedVersion) - All unpublished changes are permanently discarded
- Status returns to
published
Response
Returns the Component object withpublished status.
Error Responses
Invalid Status
Onlydraft or modified components can have changes discarded.