web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Creating a new Plan wi...
Power Automate
Answered

Creating a new Plan with MS Graph - Write requests (excluding DELETE) must contain the Content-Type header declaration.

(0) ShareShare
ReportReport
Posted on by 33

Hey,


I'm building a flow for creating a new Planner for a group with the Microsoft Graph API.

For the request I use the Microsoft Docs https://docs.microsoft.com/en-us/graph/api/planner-post-plans?view=graph-rest-1.0&tabs=http

 

Recieving a plan works fine, but I can't create a new one. I get the error Write requests (excluding DELETE) must contain the Content-Type header declaration.

 

The Content Type is in the request. Please see the Screenshots

https://www.directupload.net/file/d/5803/mzw8loaf_png.htm

https://www.directupload.net/file/d/5803/nvqiloje_png.htm

https://www.directupload.net/file/d/5803/fgak2av6_png.htm

 

Has anyone an idea whats wrong?

 

Thanks to all 🙂

Categories:
I have the same question (0)
  • Verified answer
    yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hi @wit4r7 

     

    You have to pass the authorization as header in the headers section and pass JSON in the body (for items that you are passing in the query parameter)

     

    Hope this Helps!

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

  • Verified answer
    wit4r7 Profile Picture
    33 on at

    I found my mistake.
    I put the body into the Queries and not into the body field. Then everything worked fine for me.

     

    Passing the authentifaction as raw workes fine as well, it is not nessesarry to put into the header.

     

    Best regards

    wit4r7

  • torbenbj Profile Picture
    88 on at

    Hi 

     

    Could you probably share information how you did that with screenshots? That would be very helpfull. thanks.

     

    BR 

    Tnb

  • TomasG Profile Picture
    255 on at

    Hi @wit4r7 ,

    i have the same problem. Could you share your HTTP connector body and header? 
    Thanks a lot. 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 639

#2
Valantis Profile Picture

Valantis 420

#3
11manish Profile Picture

11manish 350

Last 30 days Overall leaderboard