Method Not Allowed
This error occurs when the requested resource path exists, but does not support the HTTP method (e.g. POST, PUT, DELETE) used in the request.
Error Response Example (RFC 9457)
Section titled “Error Response Example (RFC 9457)”{ "type": "https://docs.apinow.app/errors/method-not-allowed", "title": "Method Not Allowed", "status": 405, "code": "METHOD_NOT_ALLOWED", "detail": "Method PUT is not allowed on path /api/v1/posts", "instance": "/api/v1/posts"}Troubleshooting Guide
Section titled “Troubleshooting Guide”For API Consumers (What it means & how to fix)
Section titled “For API Consumers (What it means & how to fix)”- Check Allowed Methods: Review the API specification to check which HTTP methods are supported for the endpoint. For example, some collection endpoints only support
GETandPOST(for reading and creating), while individual resource endpoints supportGET,PATCH, andDELETE.
For API Authors (Domain & API Modeler notes)
Section titled “For API Authors (Domain & API Modeler notes)”- Action Exposures: In the API Modeler, check which actions (Create, Read, Update, Delete) you have selected to expose for the entity. If an action is unselected, the platform will return
405 Method Not Allowedwhen clients attempt to call it.