discard_draft
Discard unsaved draft changes on a content entry to revert to the last published version. Use to abandon draft edits without affecting the published version.
Instructions
Discard unsaved draft changes on a content entry, reverting to the last published version. This is only available on Strapi v5 which has a separate draft layer. On Strapi v4, this operation is not supported and will return an error. Use this when you want to abandon draft edits without affecting the currently published version.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| locale | No | Locale of the draft to discard (e.g., 'en', 'fr'). Only needed for i18n-enabled types. | |
| entry_id | Yes | Numeric ID of the entry whose draft changes should be discarded | |
| content_type | Yes | Plural API ID of the content type (e.g., 'articles', 'products') |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |