The API is
curl --request POST \
--url 'https://your-domain.atlassian.net/rest/api/3/issue/API-1/attachments' \
--user 'firstname.lastname@example.org:<api_token>' \
--header 'Accept: application/json' \
--header 'X-Atlassian-Token: no-check' \
The header 'X-Atlassian-Token: no-check' is a must and make sure you pass it when you send the request.
And path, you can give full path or relative path. The should be followed after @ symbol.
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