Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Bala Sarvani C
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
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 Champion
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