So, I am writing a code for automatically updating images to the confluence page. But I am not able to update images from local folder, it is showing unknown attachment
1. If I am adding an image to attachments and trying to access it -> It can be accessed successfully
2.I need a method to access images from local directory or how to add images to confluence attachments through script and how can I access each
Hi @Nachikethas E ,
welcome to the Atlassian community!
You can interact with your confluence (cloud or server) through REST Api. In particular, you can use the following api https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content---attachments/#api-wiki-rest-api-content-id-child-attachment-post from your own script. There are some examples on the provided link.
Hope this helps,
Fabio
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.