---
title: "Update or rewire a routing key"
method: PATCH
path: "/v1/organizations/routing-keys"
---

# Update or rewire a routing key

`PATCH /v1/organizations/routing-keys`

## Request

- Base URL: `https://api.proxyllm.ai`
- URL: `https://api.proxyllm.ai/v1/organizations/routing-keys`
- Auth: HTTP bearer

?id=<routing_key_id>. Accepts label, monthly_budget_usd, revoked, regenerate, and a providers array (with mode) to replace the chain.

## Query parameters

- `id` string, required

## Response `200`

Updated routing_key.

## Other responses

- `400`: Invalid config or a referenced lane is not yours.
- `402`: No active membership. The body carries code=payment_required, a payment block (checkout_url, price_usd, account_expires_at), and a message written to be relayed to the account's human operator. Poll GET /v1/organizations/me until plan is "pro".

---

[API](https://skmtc.dev/proxyllm/apis/proxyllm-api.md) · [All operations](https://skmtc.dev/proxyllm/apis/proxyllm-api/llms.txt) · [OpenAPI document](https://skmtc.dev/proxyllm/apis/proxyllm-api/revisions/35d93083b555?raw)
