Numbers · API Reference

Update Number

Updates the default agent that answers inbound calls on this number. Pass `null` to `defaultAgentId` to clear the assignment.

PATCH/v1/numbers/{id}
Scope:calls:write
Path Parameters
id
stringrequired

The number ID to update.

Request Body
defaultAgentId
stringoptional

Agent to handle inbound calls on this number. Pass `null` to clear.

Responses
{
  "id": "num_xxxxxxxxxxxx",
  "e164": "+918008001234",
  "defaultAgentId": "agt_xxxxxxxxxxxx"
}
PlaygroundPATCH
Authorization

Path

{id}required

Body

defaultAgentIdoptional