I would like to use the Rest API to do so :
curl -D- -u {username}:{password} -X POST -H "X-Atlassian-Token: nocheck" -F "file=@{path/to/file}" http://{base-url}/rest/api/2/issue/{issue-key}/attachments
However I can only add headers and body in my POST request.
How can I do so? I received an 415 error with a body : file=@zipfilepath
and in the headers :
X-Atlassian-Token: no-check
Authorization: Basic credentials
Accept: application/json
Content-Type: application/x-www-form-urlencoded
Can someone help?
If this can help... the path is an http://filepath.zip
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.