Update Phone Number
Authorizations
Your API key sent as a Bearer credential — Authorization: Bearer <api_key>, where <api_key> starts with oi_sk_ (create one via POST /v1/api-keys). Although the field is labelled 'token', paste your API key here. A dashboard JWT is also accepted on this header for the same endpoints.
Path Parameters
Body
Partial routing patch for PATCH /phone-numbers/{id}. Every field is
optional so callers can change just one knob (e.g. voicemail_message) without
re-sending agent_id. The service MERGES the provided fields into the number's
existing inbound_routing — fields left unset are preserved; an explicit null
on fallback clears it. agent_id, when omitted, keeps the current routing
agent (falling back to the number's column-level agent_id).
Response
Successful Response
Per-number routing override. Stored as JSONB so we can extend with business-hours and caller-id rules later without a schema change.