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 / Not able to create cus...
Power Automate
Answered

Not able to create custom api because of isue in basePath

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

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?

Categories:
  • v-micsh-msft Profile Picture
    Microsoft Employee on at

    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
    Microsoft Employee on at

    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
    Microsoft Employee on at

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

  • TomCastiglia1 Profile Picture
    17 on at

    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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 355

#2
11manish Profile Picture

11manish 336 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 308

Last 30 days Overall leaderboard