cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Buddy2019
Level: Powered On

HTTP Post Request with parameters inside JSON Schema

I am trying to a send a HTTP Post request with some parameters in the JSON Schema.

 

post.pngPost

However, when this request is triggered, I get this error 

{"error":{"code":"TriggerRequestMethodNotValid","message":"The HTTP method for this request is not valid: expected 'Post' and actual 'GET'."}}

 

I notice that it is always sending a GET request even if I sent a post method.  How would I be able to send a Post request? I am trying to send some parameters within the body. I don’t want my parameters to be visible in the URL.

 

Get.png

1 ACCEPTED SOLUTION

Accepted Solutions
Dual Super User
Dual Super User

Re: HTTP Post Request with parameters inside JSON Schema

Hey @Buddy2019 

 

So you can do that by not defining any particular type while configuring the trigger. All you need to do is configure the JSON schema for the request. I have written this blog post that can help you with the entire configuration: 

https://powerusers.microsoft.com/t5/Microsoft-Flow-Community-Blog/Microsoft-Flow-as-a-Service/ba-p/3... 

 

You might wanna check this thread as well: 

https://powerusers.microsoft.com/t5/General-Flow-Discussion/Trigger-a-HTTP-Request-via-URL/m-p/36473...

 

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!

View solution in original post

2 REPLIES 2
Dual Super User
Dual Super User

Re: HTTP Post Request with parameters inside JSON Schema

Hey @Buddy2019 

 

So you can do that by not defining any particular type while configuring the trigger. All you need to do is configure the JSON schema for the request. I have written this blog post that can help you with the entire configuration: 

https://powerusers.microsoft.com/t5/Microsoft-Flow-Community-Blog/Microsoft-Flow-as-a-Service/ba-p/3... 

 

You might wanna check this thread as well: 

https://powerusers.microsoft.com/t5/General-Flow-Discussion/Trigger-a-HTTP-Request-via-URL/m-p/36473...

 

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!

View solution in original post

Dual Super User
Dual Super User

Re: HTTP Post Request with parameters inside JSON Schema

Hey @Buddy2019 

 

Were you able to resolve? If this issue is resolved, please mark the response that helped you as 'Accept as Solution'. 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!

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (5,894)