Failed to download attachment with Get URI to download attachment API

Hi, community,

I’m trying to use https://developer.atlassian.com/cloud/confluence/rest/api-group-content---attachments/#api-wiki-rest-api-content-id-child-attachment-attachmentid-download-get in my Connect app.

But, if an attachment is on a draft page, the API returns 404 with the message “com.atlassian.confluence.api.service.exceptions.NotFoundException: No content found with id : current and status ContentId{id=262471681}, there is a content object with status : draft”.

Is there any way to get attachments on a draft page with the API? Or Do I have to use the URL of _links.download?

1 Like