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

Update attachment using REST API, Upload from Windows computer

Hi

I found a lot of inputs how I can update attachments using REST API. I was able to install curl on a Windows server and find out the page id and attachment id. Now I'm struggling with the syntax to add the path to the "local file".

a) How can I add a local path in the Curl command?

b) Is it possible to use a UNC path to the file?

 

My commands look like this.

curl -D- -u user:password -H "X-Atlassian-Token: nocheck" -F "file=@//C:/_scripts/Shopfloor-Cockpit.pdf"
-F "comment=Automatischer Upload durch Schnittstelle" http://testserver/rest/api/content/21987440/child/attachment/44499166/data

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Posted in Confluence

Lessons and Learnings: Six Months of Working Remote [Discussion]

Hey there, folks! For most of us, the past six months- yes, you read that right- have been a journey. More people than ever before have pivoted to working remotely, and navigating being on-scre...

8,368 views 6 6
Join discussion

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