METHOD_NOT_SUPPORTED

Reason

  • The used HTTP method is not supported for the resource
  • The used HTTP method is not supported by the API service
  • The OPTIONS HTTP method was used without the Origin HTTP header

Solution

  • Make sure that the request URI includes the resource ID, if it was meant to, or does not include resource ID, if it was not
  • Check the API documentation of the resource for the correct HTTP method
  • Make sure, that the OPTIONS CORS preflight request includes the Origin HTTP header

Example

{
    "status": 405,
    "errors": [
        {
            "code": "METHOD_NOT_SUPPORTED",
            "message": "HTTP method is not supported or is not allowed for the resource",
            "more_info": "https://developer.kayako.com/api/v1/reference/errors/METHOD_NOT_SUPPORTED"
        }
    ]
}