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

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Not able to create custom api because of isue in basePath

(0) ShareShare
ReportReport
Posted on by

I am getting the error while creating a Custom Api. Earlier I upload the swagger file but there was no host in that. Hence I added the host myself and upload the same.


The request failed with error: 'Swagger contains base path:api/rest/v5/ but backend Url doesn't end on same path:/api/rest/v5/ '. The tracking Id is '458ce2d5-3854-49a1-abd8-a377eb013539'.

 

Could someone point the reason for that?

I have the same question (0)
  • v-micsh-msft Profile Picture
    on at
    Re: Not able to create custom api because of isue in basePath

    Hi @Anonymous,

     

    In addition to the host information, have the basepath been modified?

    Just from the error message posted, it seems that the basePath does not match with the Server side URL.

    Swagger Specification

    For the tracking ID, would it be convenient for @tpalmer to check on this?

    Regards

  • Tessa Kloster Profile Picture
    on at
    Re: Not able to create custom api because of isue in basePath

    Hi there - would you be able to share your swagger file? We'll check on the error ID, it's likely it will show the same error text as you see in the UI. Please also check the URLs as suggested!

  • Verified answer
    Community Power Platform Member Profile Picture
    on at
    Re: Not able to create custom api because of isue in basePath

    there was some issue on my end. It is resolved now. Thanks for the help

  • TomCastiglia1 Profile Picture
    17 on at
    Re: Not able to create custom api because of isue in basePath

    Hello Aygupta - I am having a similar error message importing my Swagger definition into MS Flow.  Could you advise what the issue was on your end that caused this error and how did you resolve it?

     

    -Tom Castiglia

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 691 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 431 Moderator

#3
developerAJ Profile Picture

developerAJ 266

Last 30 days Overall leaderboard