更新入站详细信息
开发环境
http://dev-cn.your-api-server.com
开发环境
http://dev-cn.your-api-server.com
POST
/v1/inbound/{phone_number}
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://dev-cn.your-api-server.com/v1/inbound/' \
--header 'authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data-raw '{
"prompt": "<string>",
"pathway_id": "<string>",
"voice": "<string>",
"first_sentence": "<string>",
"wait_for_greeting": true,
"interruption_threshold": 123,
"model": "<string>",
"tools": [
{}
],
"language": "<string>",
"timezone": "<string>",
"transfer_phone_number": "<string>",
"transfer_list": {},
"dynamic_data": {},
"keywords": [
"<string>"
],
"max_duration": 123,
"webhook": "<string>",
"analysis_schema": {},
"metadata": {},
"record": true
}'
响应示例响应示例
{
"status": "success",
"message": "Successfully updated number +18584139939.",
"updates": {
"prompt": "(Your prompt)",
"voice": "maya",
"webhook": null,
"first_sentence": "Roberta speaking, how can I help you?",
"record": false,
"max_duration": 30,
"model": "enhanced"
}
}
请求参数
Path 参数
phone_number
string
必需
如果未提供国家/地区代码,将采用美国国家/地区代码。
有效示例+13334445555:
13334445555
3334445555
Header 参数
Content-Type
string
必需
示例值:
application/json
authorization
string
必需
示例值:
<authorization>
Body 参数application/json
返回响应
修改于 2024-05-10 08:12:43