Hi there,
Similar to Problems getting archived attachment body, it seems impossible to retrieve an attachment via the official REST api (documented here: Get URI to download attachment, if the container of the attachment is a draft object. The API returns the following answer:
// https://myinstance.atlassian.net/wiki/rest/api/content/<draftID|contentId>/child/attachment/<attachmentId>/download
{
"statusCode": 404,
"data": {
"authorized": true,
"valid": true,
"errors": [
],
"successful": true
},
"message": "com.atlassian.confluence.api.service.exceptions.NotFoundException: No content found with id : current and status ContentId{id=<draftId>}, there is a content object with status : draft"
}
Does anyone have a solution to this? Is there some kind of magic parameter that can be set? At least ?status=draft
does not help either.
Thanks in advance