Error: method_not_allowed
The route exists but doesn't accept the HTTP method you used.
What it means
Each route accepts specific methods (POST for evaluate and rules, GET for listing, DELETE for removal). Using the wrong one returns 405.
Common causes
GET on a POST-only route.
PUT where the API only supports POST or PATCH.
How to fix
Use the documented method for the route.
Evaluate: POST. Rules: POST (create), GET (list), DELETE (remove).
At a glance
| Field | Value |
|---|---|
| HTTP status | 405 |
| Error code | method_not_allowed |
| Response shape | {"ok": false, "error": "method_not_allowed"} |
FAQ
Can I update a rule with PUT?
No — use DELETE + POST (remove and recreate) or the documented endpoints. PUT isn't supported on the rules routes.
Related
Stop the next $12,400 night.
One API call (or MCP tool) in front of every agent transaction — APPROVED, BLOCKED, or FLAGGED, deterministic, ~5 ms, fully logged.
See plans — from $99/mo Try a live check