Delete content history
Delete a historical version of a page or a blogpost. Current user must have edit permission on content, or it will throw a permission exception.
DELETE
/rest/api/content/{id}/version/{versionNumber}Path parameters
idstringrequiredThe id of the content
versionNumberstringrequiredversion number starts from 1 up to current version.
Responses
204
Returns a Successful deletion of a page/blogpost version.
400
Returned if versionNumber is less than 1, does not exist or has already been deleted.
statusCodeinteger<int32>dataValidationResultShow propertiesHide properties
authorizedbooleanvalidbooleanerrorsobjectsuccessfulbooleanallowedInReadOnlyModebooleanmessagestringreasonstring403
Returned if the calling user doesn't have permission to edit the content.
statusCodeinteger<int32>dataValidationResultShow propertiesHide properties
authorizedbooleanvalidbooleanerrorsobjectsuccessfulbooleanallowedInReadOnlyModebooleanmessagestringreasonstring404
Returned if the contentId cannot be found.
statusCodeinteger<int32>dataValidationResultShow propertiesHide properties
authorizedbooleanvalidbooleanerrorsobjectsuccessfulbooleanallowedInReadOnlyModebooleanmessagestringreasonstring