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

Add Attachments with REST API


I am working with Power Automate to create issues in Jira automatically, however the Jira plugin for Power Automate doesn't allow to add an attachment, so I have been trying to use the HTTP action on Power Automate with the Method post to add the attachments, but so far it's not working. 

I tried to test it with Postman as well with the same result. 


Any ideas of what could be the problem, the error code it's showing me is: 404 XSRF check failed.


2 answers

1 accepted

1 vote
Answer accepted

hi @Sujaira Moughawiche you just need to add header to the request (as described in

  • X-Atlassian-Token: no-check

I just tested and it is working. Complete request configuration looks like:


Thanks @Martin Bayer _MoroSystems_ s_r_o__  It works on Postman now but still not working on Power Automate. I am trying to pass the File Content on the body but it's showing error 500. 

I do not know Power Automate, can you share more information, screenshot of the configuration...?

The picture on my original post shows the HTTP action that Power Automate has available. I think the issue could be on how the file it's attach to the body. 

I am sorry, I tried to google it but with no luck. It is definitely more about Power Automate, so it would be great to check with someone who knows this tool.

Yes it does looks like an issue on Power Automate. Thanks. 

Hi @Martin Bayer _MoroSystems_ s_r_o__ , 

Cany you help me to create cookie in the header?

Suggest an answer

Log in or Sign up to answer
Site Admin
Community showcase
Published in Jira

Do you use Jira Cloud with Microsoft Teams?

Hi, Jira users! Do you use Jira alongside Microsoft Teams? We want to hear how you’ve used the power of Jira Cloud and Microsoft Teams (via the Jira Cloud for Microsoft Teams app) to achieve a team...

533 views 1 10
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