Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Answered

HTTP REST API - Post/Put results with "The requested URL was rejected. Please consult with your administrator."

Like (0) ShareShare
ReportReport
Posted on 17 Mar 2021 19:09:39 by 24

Hey everyone

 

I got this strange issue. I have setup a process in which I call an API with POST to create a new user account. This worked for 2-3 months perfectly. But now, since last week I always receive the body: "The requested URL was rejected. Please consult with your administrator." And the server does not even log these events. The GET calls do work though, which surprises me.

 

I've tested the same with postman.co and there it worked flawlessly. Thus I presume there is some issue with Microsoft Flow. But I cannot find out what it is. Has anyone an idea?

 

{
    "inputs": {
        "method""POST",
        "uri""https://censored/admin/users/",
        "headers": {
            "Content-Type""application/json; charset=utf-8",
            "Accept""application/json"
        },
        "body": {
            "user": {
                "group""censored",
                "email""censored",
                "name""censored",
                "send_password_request"true
            }
        },
        "authentication": {
            "type""Basic",
            "username""censored",
            "password""censored"
        }
    }
}

 

And this worked before last week. So I really don't know what happened...

 

Any help is appreciated. Cheers

  • Verified answer
    Daen Profile Picture
    24 on 23 Mar 2021 at 07:24:59
    Re: HTTP REST API - Post/Put results with "The requested URL was rejected. Please consult with your administrator."

    Hey Alex

    Thank you very much for your help. Luckily I found the cause of this whole debacle. The firewall of the web application was blocking my calls. The reason was that the header was too long and thus the firewall blocked it. We've increased now this limit. 

     

    Maybe it would still make sense for you, to keep an eye on the header length. And try to keep it as short as possible.

     

    Thanks again with best regards

  • alrezac Profile Picture
    on 19 Mar 2021 at 18:50:41
    Re: HTTP REST API - Post/Put results with "The requested URL was rejected. Please consult with your administrator."

    Hi,

     

    Its definitely weird that its not currently working. Looking through it, it looks like it should be working. This is probably going to require some more in depth troubleshooting of the network calls. I would suggest using your developer tab for your browser to see if that returns any relevant data on why it might be failing. If you are still having issues from there and cant figure out what is going on I would suggest opening a ticket with Microsoft Support. I'll include a link below if you would like to go down that path. Otherwise if any other communities users have any ideas feel free to chime in.

     

    If you would like to create a ticket with Microsoft Customer Support here is a link on how to do so: https://docs.microsoft.com/en-us/power-platform/admin/get-help-support

     

    Regards,

     

    Alex

     

    -------

     

    Community Support Team _ Alex Rezac
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,660 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,999 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow