Update phone number

Update assigned agent of a phone number

Path parameters

phone_number_idstringRequired
The id of an agent. This is returned on agent creation.

Headers

xi-api-keystringOptional

Request

This endpoint expects an object.
agent_idstring or nullOptional
labelstring or nullOptional
inbound_trunk_configobject or nullOptional
outbound_trunk_configobject or nullOptional
livekit_stackenum or nullOptionalDefaults to standard
Allowed values:
store_sip_messagesboolean or nullOptional
environmentstring or nullOptional
Environment to use for resolving environment variables on calls to this number.
branch_idstring or nullOptional
Agent branch to use for calls to this number.

Response

Successful Response
twilioobject
OR
sip_trunkobject

Errors

422
Unprocessable Entity Error
๐Ÿ” Ferramentas de Espionagem
Servidor: srv1638767 ยท BR-SP