PATCH
/
phonenumbers
/
{phoneNumberId}

Authorizations

Authorization
string
headerrequired

Your API key, e.g. caldLiveDe39a3accb206dd615f30d118e519df0

Path Parameters

phoneNumberId
string
required

The phone number ID of the phone number

Body

application/json
agentId
string

The agent ID of the agent to use when an inbound call is received on the phone number. If not specified, the agent will be removed from the phone number and no agent will be used when an inbound call is received - this is useful if you want to use the phone number for outbound calls only and don't want to receive/incur charges for inbound calls

Response

200 - application/json
phoneNumberId
string

The phone number ID of the phone number resource

phoneNumber
string

The phone number, prefixed with the country code, for example, +1558873402

price
number

The monthly price of the phone number in USD

agentId
string

The agent ID of the agent that the phone number is assigned to. When making inbound calls, the agent will be called.