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
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...
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