I have some APIs published in Azure API Management, that call a REST web application behind the scenes. Most of the endpoints use the format:
https://company.azure-api.net/dom/ep/{pathParamVal}?{queryParamName}={queryParamVal}
If {queryParamVal} is a really long string which causes the URL length to exceed 350-400 characters, everything works as expected. But if I specify that same string value as the {pathParamVal}, I get a HTTP 400 error code - HTTP Error 400. The request URL is invalid.. I know this is related to Azure, because the underlying web application works with lengthy path parameters as well as query parameters.
Is there a limitation on how long the URL path can be?
 
    

 
    