Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Attachments with REST API 2.0

Wouter Dumon
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 23, 2023

Hi,

 

I'm trying to add an attachment to an issue using the 2.0 API: /rest/api/2/issue/PMOSD-3637/attachments

 

following this question https://community.atlassian.com/t5/Jira-Software-questions/Add-Attachments-with-REST-API/qaq-p/1583351

 

I should be able to just call this link with the no-check header and the file in the form-data however i keep getting a 400 bad request.

Header:

//Content-Disposition:multipart/form-data
//name:file
//filename:attachment5.jpg
X-Atlassian-Token:no-check
//Content-Type:multipart/form-data
//Accept:application/json

 

Attachment:

JIRAQUESTION.png

0 answers

Suggest an answer

Log in or Sign up to answer