更新电话号码

更新分配给电话号码的智能体。

路径参数

phone_number_idstring必需

电话号码 ID。导入电话号码时会返回此值。

请求头

xi-api-keystring可选

请求

This endpoint expects an object.
agent_idstring or null可选
labelstring or null可选
inbound_trunk_configobject or null可选
outbound_trunk_configobject or null可选
livekit_stackenum or null可选默认为 standard
允许的值:
store_sip_messagesboolean or null可选
environmentstring or null可选

调用此号码时用于解析环境变量的环境。

branch_idstring or null可选

呼叫此号码时使用的智能体分支。

响应

成功响应

twilioobject
OR
exotelobject
OR
sip_trunkobject

错误

422
Unprocessable Entity Error