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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,460,447
Community Members
 
Community Events
176
Community Groups

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].atlassian.net/rest/api/3/issue/[TICKETID]/attachments).

 

The Content-Type is "application/vnd.ms-outlook". 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/vnd.ms-outlook" - so apparently it is supported by JIRA.

image.png

 

Thanks for your help,

Carl

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,

Carl

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?

attachments.png

Like Dr_ Carl Heckmann likes this

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events