Update a phone number
update_phone_numberUpdate a phone number
Changes which agent answers on a number and the label it carries in the dashboard. Only the fields present in the body are written, everything else is left alone; a body with no known field is rejected with 400. The response is an acknowledgement message only, it does not echo the updated record: read the number back with the GET endpoint if you need the new state. Assigning an agent here does not itself provision the number at the carrier, it only changes the routing recorded for it.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"phoneNumberId": "<phoneNumberId>",
"body": "<body>"
},
"name": "update_phone_number"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | The fields to change. `voiceAgentId` points the number at a voice agent, or clears the routing when null, and `label` sets the display name returned as `friendlyName`. | |
| phoneNumberId | Yes | Identifier of the phone number. |