Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Upload file to confluence page using REST API- Groovy

Hi

I was wondering how I would go about uploading a specific file from a directory on my local machine to a specific confluence page using the REST API, I couldn't seem to find that in the documentation. 

If I could be guided towards that, that would be very helpful! 

2 answers

 curl -v -S -u $USERNAME:$PASSWORD -X POST -H "X-Atlassian-Token: no-check" -F "file_0=@code/pydoc/manage_connections.html" "https://alm-group.atlassian.net/wiki/spaces/PROJECT/pages/830833705/PyDoc"
0 votes
Hasnae Atlassian Team Dec 21, 2017

You might want to have a look at the following documentation of the attachment REST Api :

https://docs.atlassian.com/atlassian-confluence/REST/6.5.2/#content/{id}/child/attachment-createAttachments

Hope this helps.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira

Admins, notify your Jira instance of system-wide changes with the new admin announcement banner

Hi All! We’re excited to share the launch of an announcement banner that lets Jira site administrators communicate directly to their users across Jira Cloud instance.   📢 Get y...

134 views 6 6
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you