Hi.
Does anyone know how to delete a draft for a new Confluence page version, i.e. an "unpublished change", using REST? Is it even possible? The obvious way does not work for me, as shown by the following curl command and output (some information hidden/changed for security reasons):
$ curl --request DELETE --url 'https://ourdomain.atlassian.net/wiki/rest/api/content/428965932?status=draft' --user 'toralf:<token>'
{"statusCode":400,"data":{"authorized":true,"valid":false,"errors":[{"message":{"key":"content.delete.published","args":[]}}],"successful":false},"message":"com.atlassian.confluence.api.service.exceptions.BadRequestException: null"}
A GET with the same URL returns the expected JSON data for my content.
Note that the page in question has already been published; I'm not talking about a draft for a new page, but rather a (potential) new version marked as "draft".
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.