URL_TOO_MANY_SEGMENTS

The resource URI can include a limited number of custom components before the resource's ID (if any): /api/v1/<app>/<identity>/<resource>/<id>.

Reason

  • The API service recognized the resource URI, but not all of its components

Solution

  • Check if the request URI does not include redundant components
  • Make sure, that there is a ? character between the URI and the query arguments (or & between the URI and other query arguments, if you use /api/index.php?/v1)

Example

{
    "status": 400,
    "errors": [
        {
            "code": "URL_TOO_MANY_SEGMENTS",
            "message": "Too many segments in REST API base URL",
            "more_info": "https://developer.kayako.com/api/v1/reference/errors/URL_TOO_MANY_SEGMENTS"
        }
    ]
}