I want to check if an attachment exists in confluence page using rest API using attachment name.
Hello there,
Welcome to Atlassian Community! It's nice to meet you.
You can check if an attachment exists by sending a GET request to the /rest/api/content/{id}/child/attachment endpoint:
In response you will get the list of all the attachments for the desired page and then you can scan the response in order to see if the attachment with the given name exists.
Can you give that a try and let me know if you have any trouble?
Regards,
Shannon
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.