Skip to content
API Now! is currently in closed beta. We are constantly updating these guides as we release updates!

Method Not Allowed

← Back to Overview

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.


{
"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"
}

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 GET and POST (for reading and creating), while individual resource endpoints support GET, PATCH, and DELETE.

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 Allowed when clients attempt to call it.