Forums

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

Why does the ticket upload attachment endpoint return 200 even though no attachment is created?

Max Forsman
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!
July 6, 2022

I am making a request to https://$namespace.atlassian.com/rest/api/2/issue/$KEY/attachment, and I get a 200 OK response with an empty body, but no attachment is added.

 

Please fix this, you need to provide an informative error message when an attachment upload fails instead of just returning 200.

1 answer

0 votes
Prince Nyeche
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 7, 2022

If you're referring to this endpoint it should return a response if successful. Take note that it can be accessed anonymously too, so you have to ensure that you've done proper authentication to the resource to remove any ambiguity in the request.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
TAGS
AUG Leaders

Atlassian Community Events