Assign an agent to a DID
Updates a phone number’s agent assignment, inbound-routing flag, friendly name, or status. Active duplicate DIDs are allowed for outbound caller ID reuse, but only one active row per DID can have inbound_enabled=true. When inbound routing changes for Plivo or Vobiz, Vocobase first updates the carrier Application binding and then updates the local record. If carrier sync fails, the local assignment is not committed.
Authorizations
API key in format: rg_live_xxxx. Pass as a Bearer token in the Authorization header.
Path Parameters
Phone number ID from GET /phone-numbers.
Body
Agent ID to assign. Use null or an empty string to clear assignment. If inbound_enabled is omitted, assigning an agent enables inbound routing and clearing the agent disables it.
Whether this DID should receive inbound calls for the assigned agent. Set false to keep the row available for outbound caller ID use only.
200ACTIVE, INACTIVE