Need help in inserting and saving image on wiki page using Curl or Net:HTTP Ruby commands

Bala Sarvani C April 25, 2017

Hi,

I am successful in uploading an image to wiki page by running following curl command:

curl -v -S -u admin:admin -X POST -H "X-Atlassian-Token: no-check" -F "file=@myfile.txt" -F "comment=this is my file" "http://localhost:8080/confluence/rest/api/content/3604482/child/attachment" 

But I am not able to insert and save the wiki page using curl or ruby Net:HTTP commands. Please help me in doing so.

 

Thanks,

Bala

 

 

1 answer

0 votes
Mirek
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 28, 2021

Basically attachment need to be first uploaded and then it can be used on the page. 

Maybe this could be helpful

https://confluence.atlassian.com/confkb/using-the-confluence-rest-api-to-upload-an-attachment-to-one-or-more-pages-1014274390.html

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events