Skip to content

Discard Document Draft

Discard the current unpublished draft of a document, reverting its content to the last published version. Requires the DOCUMENTS feature flag and ADMIN, UPDATE_DOCUMENT, or MANAGE_DOCUMENTS permissions.

Parameters

name * are required parametersdata typedescription
documentId*stringThe unique identifier of the document

Return Value

The document reverted to its last published state.

Examples

bash
curl -X POST "https://app.wombat.software/api/{targetPath}/document/:documentId/discard-draft" \
  -H "Content-Type: application/json" \
  -H "Authentication: Bearer ..."

ENDPOINTS

post/api/{targetPath}/document/:documentId/discard-draft