Skip to content
atlassian-dc-mcp
Esc
↑↓navigate↵open⌘Jpreview

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
idstringrequired

The id of the content

versionNumberstringrequired

version 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>
dataValidationResult
Show properties
authorizedboolean
validboolean
errorsobject
successfulboolean
allowedInReadOnlyModeboolean
messagestring
reasonstring
403

Returned if the calling user doesn't have permission to edit the content.

statusCodeinteger<int32>
dataValidationResult
Show properties
authorizedboolean
validboolean
errorsobject
successfulboolean
allowedInReadOnlyModeboolean
messagestring
reasonstring
404

Returned if the contentId cannot be found.

statusCodeinteger<int32>
dataValidationResult
Show properties
authorizedboolean
validboolean
errorsobject
successfulboolean
allowedInReadOnlyModeboolean
messagestring
reasonstring
Try it
Server
Parameters
Request
curl -X DELETE 'http://example.com:7990/confluence/rest/api/content/string/version/string' \
  -H 'Accept: application/json'
Response
Returns a Successful deletion of a page/blogpost version.

Was this page helpful?