Delete a model route
DELETE/api/v1/model-routes/:route_id
Deletes a model route. Returns 409 when an agent still references it — a routed agent has no pinned provider to fall back on, so the reference must be repointed or the agent deleted first.
Request
Responses
- 204
- 400
- 401
- 403
- 404
- 409
- 429
- 500
Model route deleted successfully
Invalid request — a query parameter or body field the operation does not declare, or a value that fails validation
Unauthorized
Forbidden
Model route not found
The model route is still referenced by one or more agents
QUOTA_EXCEEDED — a requests quota on the calling API key or its project is spent for the window; Retry-After says when it reopens
Response Headers
Retry-After
Seconds until the quota window admits a request again
Unexpected server error — INTERNAL_ERROR, with the raw message never forwarded