Skip to main content

Notifications

Community site session details

Community site session details

Session Id : XuxLS5RPCe1TdvId1nSf40
Power Automate - Building Flows
Answered

Remember to include a Content-Type header set to application/json in your request.

Like (1) ShareShare
ReportReport
Posted on 2 Sep 2018 08:36:00 by 10

Hi

 

I am trying to create HTTP Request "When a HTTP request is recevied". Whenever i add "Request Body JSON Schema" the Flow designer prompts me "Remember to include a Content-Type header set to application/json in your request.". I know that i have to define the content-type but how to do it??

 

My Schema is as below

 

 
{
"type": "object",
"properties": {
"type": {
"type": "string",
"$id": "#/properties/type",
"title": "TheTypeSchema",
"default": "",
"examples": [
"profile"
],
"pattern": "^(.*)$"
},
"fired_at": {
"type": "string",
"$id": "#/properties/fired_at",
"title": "TheFired_atSchema",
"default": "",
"examples": [
"2009-03-2621:31:21"
],
"pattern": "^(.*)$"
},
"data[id]": {
"type": "string",
"$id": "#/properties/data[id]",
"title": "TheData[id]Schema",
"default": "",
"examples": [
"8a25ff1d98"
],
"pattern": "^(.*)$"
},
"data[list_id]": {
"type": "string",
"$id": "#/properties/data[list_id]",
"title": "TheData[list_id]Schema",
"default": "",
"examples": [
"a6b5da154"
],
"pattern": "^(.*)$"
},
"data[email]": {
"type": "string",
"$id": "#/properties/data[email]",
"title": "TheData[email]Schema",
"default": "",
"examples": [
"api@mailchimp.com"
],
"pattern": "^(.*)$"
},
"data[email_type]": {
"type": "string",
"$id": "#/properties/data[email_type]",
"title": "TheData[email_type]Schema",
"default": "",
"examples": [
"html"
],
"pattern": "^(.*)$"
},
"data[merges][EMAIL]": {
"type": "string",
"$id": "#/properties/data[merges][EMAIL]",
"title": "TheData[merges][email]Schema",
"default": "",
"examples": [
"api@mailchimp.com"
],
"pattern": "^(.*)$"
},
"data[merges][FNAME]": {
"type": "string",
"$id": "#/properties/data[merges][FNAME]",
"title": "TheData[merges][fname]Schema",
"default": "",
"examples": [
"MailChimp"
],
"pattern": "^(.*)$"
},
"data[merges][LNAME]": {
"type": "string",
"$id": "#/properties/data[merges][LNAME]",
"title": "TheData[merges][lname]Schema",
"default": "",
"examples": [
"API"
],
"pattern": "^(.*)$"
},
"data[merges][INTERESTS]": {
"type": "string",
"$id": "#/properties/data[merges][INTERESTS]",
"title": "TheData[merges][interests]Schema",
"default": "",
"examples": [
"Group1,Group2"
],
"pattern": "^(.*)$"
},
"data[ip_opt]": {
"type": "string",
"$id": "#/properties/data[ip_opt]",
"title": "TheData[ip_opt]Schema",
"default": "",
"examples": [
"10.20.10.30"
],
"pattern": "^(.*)$"
}
},
"definitions": {},
"$schema": "",
"$id": "http://example.com/root.json",
"title": "MailChimp",
"default": null,
"required": [
"type",
"fired_at",
"data[id]",
"data[list_id]",
"data[email]",
"data[email_type]",
"data[merges][EMAIL]",
"data[merges][FNAME]",
"data[merges][LNAME]",
"data[merges][INTERESTS]",
"data[ip_opt]"
]
}
 
And My Payload is as below
 
{
"type": "profile",
"fired_at": "2009-03-26 21:31:21",
"data[id]": "8a25ff1d98",
"data[list_id]": "a6b5da154",
"data[email]": "api@mailchimp.com",
"data[email_type]": "html",
"data[merges][EMAIL]": "api@mailchimp.com",
"data[merges][FNAME]": "MailChimp",
"data[merges][LNAME]": "API",
"data[merges][INTERESTS]": "Group1,Group2",
"data[ip_opt]": "10.20.10.30"
}
  • BrandonPowerapp Profile Picture
    3 on 04 Nov 2022 at 00:27:04
    Re: Remember to include a Content-Type header set to application/json in your request.

    I'm trying to send an HTTP request via button push in Power Pages. Where would I specify this content type? This post only gives specific advice for doing so in Postman. Thanks.

  • GabrielStJohn Profile Picture
    on 06 Sep 2018 at 21:17:32
    Re: Remember to include a Content-Type header set to application/json in your request.

    Hello, @majidb!

     

    Thank you for posting on the Flow Community Forum! Have you had an opportunity to apply @v-bacao-msft‘s recommendation to adapt your Flow? If yes, and you find that solution to be satisfactory, please go ahead and click “Accept as Solution” so that this thread will be marked for other users to easily identify!


    Thank you for being an active member of the Flow Community!

     

    -Gabriel
    Flow Community Manager

  • Verified answer
    v-bacao-msft Profile Picture
    on 03 Sep 2018 at 09:26:02
    Re: Remember to include a Content-Type header set to application/json in your request.

    Hi @majidb,

     

    I am sorry that the link provided does not actually help you, and my explanation above may also confuse you.

     

    I mean there is no problem with the flow created by the content you provide. At least the format is in line with the requirements of Flow creation.

     

    The flow designer prompts that after you create this flow, you need to include a Content-Type header set to application/json in your request when you send the Http request, such as when you test or send an http request to trigger the flow, not adding a Content type here.

     

    For example, using postman to create and send an http request, you could edit the request parameter and the content type header, and add the content type here.

     

    4.PNG

     

    Please take a try.

     

    Best Regards,

    Barry

     

     

     

     

     

     

  • MBhatti Profile Picture
    10 on 03 Sep 2018 at 08:40:47
    Re: Remember to include a Content-Type header set to application/json in your request.

    Thanks Barry for your reply.

     

    I have been through this page, it says that "make sure you include a Content-Type header and set the header's value to application/json" but it does not show where and how?

     

    I added below line above my Schema right on the top as 1st line but it did throw errors

     

    Content-Type: application/json
  • v-bacao-msft Profile Picture
    on 03 Sep 2018 at 07:18:54
    Re: Remember to include a Content-Type header set to application/json in your request.

    Hi @majidb,

     

    I have made a test on my side using the Schema and Payload you provided and there are indeed such tips, but this is not your flow design error,  just a hint from Flow Designer.

     

    When you are editing your Http request, you need to include a Content-Type header.

     

    You could click on "Do not show again" and there will be no such prompts in the future.

     

    If you want to define the content-type, you can refer to the following link:

     

    https://docs.microsoft.com/en-us/azure/logic-apps/logic-apps-content-type

     

    Please take a try and let me know if issue still exist.

     

    Best Regards,

    Barry

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Automate - Building Flows

#1
stampcoin Profile Picture

stampcoin 109

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 90 Super User 2025 Season 1

#3
David_MA Profile Picture

David_MA 62 Super User 2025 Season 1

Overall leaderboard