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

Update attachment using REST API, Upload from Windows computer

SINS IT_ AIREX AG April 7, 2020

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
AUG Leaders

Atlassian Community Events