# method_not_allowed

HTTP 405 · `code`: `method_not_allowed` · `title`: Method not allowed

The path exists but not for this HTTP method, or the method is `PATCH`, which the API refuses everywhere: a change is a `PUT` that sends the whole object.

## What the answer carries

Every [problem document](https://developer.watchtower15.com/api/errors/) carries `type`, `title`, `status`, `code`, `detail` and `request_id`. This code adds nothing to them.

## What to do

Use the method the [reference](https://developer.watchtower15.com/api/reference/) lists for the operation.

## This page's address

The API's answer names this page in `type` as `https://docs.watchtower15.com/api/errors/method_not_allowed/`, an identifier that never changes within `v1`. That address answers with a permanent redirect to this page, so a link in a log still opens it, and a client comparing `type` as a string never breaks.

**Response (405 Method Not Allowed)**

```http
HTTP/1.1 405 Method Not Allowed
Content-Type: application/problem+json
Allow: GET, HEAD, PUT, DELETE
X-Request-Id: 4d1e8b7a-2c9f-4a3e-b6d5-7f0c1a2e3b4d

{
  "type": "https://docs.watchtower15.com/api/errors/method_not_allowed/",
  "title": "Method not allowed",
  "status": 405,
  "code": "method_not_allowed",
  "detail": "Method not allowed",
  "request_id": "4d1e8b7a-2c9f-4a3e-b6d5-7f0c1a2e3b4d"
}
```

Source: https://developer.watchtower15.com/api/errors/method_not_allowed/
