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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to upload an Email (.msg format) as attachment via REST API?

Hi Everyone,


I am trying to upload an email (.msg Outlook-Format) as attachment via REST API (https://[myservicedesk][TICKETID]/attachments).


The Content-Type is "application/". I receive an error message "415 Unsupported data type".


If I upload the same file manually via the User Interface it works. If I receive this attachment via API it shows the content-type "application/" - so apparently it is supported by JIRA.



Thanks for your help,


1 answer

1 accepted

0 votes
Answer accepted

Hi @Dr_ Carl Heckmann 

Can you try to add these headers as key-value pairs on postman when uploading?

"Accept": "application/json"
"X-Atlassian-Token": "no-check"


Hi Prince,


thanks, but this didn't solve it. I already hat both headers in the request.


Best regards,


Hi @Dr_ Carl Heckmann 

If those exist, can you go to the body tab on postman under form-data, select key as a file, and value should be the file you want to upload?


Like Dr_ Carl Heckmann likes this

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira Service Management

Atlympic Event: Jira Service Managemnt

Hello Community!  Quick disclaimer: We are running a contest on Community (The Atlympics!) from July 23rd - August 8th of 2021. If you are interested in participating in this contest (prizes! ...

181 views 0 3
Read article

Community Events

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

Events near you