POST /api/v0.0.1/ivr/update?token={token}&type={type}
名称 | 是否必需 | 类型 | 描述 |
ivrid | 是 | String | 要配置的 IVR 唯一标识(IVR 号码)。 |
ivrname | 否 | String |
IVR 名称。限制:
|
promptrepeat | 否 | String |
提示音播放次数 可选择的值:1、2、3、4、5 |
responsetimeout | 否 | Int |
响应超时时间 可选择的值:1、2、3、4、5、6、7、8、9、10 |
请求示例修改 IVR 4 的 IVR 号码为test_ivr,promptrepeat为3,responsetimeout为5。
POST /api/v1.1.0/ivr/update?token=1e3b3ebb6a974cb42ed31de5413df52d&type=json HTTP/1.1
Content-Type:application/json; charset=utf-8
Host: 192.168.5.150
{
"ivrid": "4",
"ivrname": "test_ivr",
"promptrepeat":"3",
"responsetimeout":"5"
}
POST /api/v1.1.0/ivr/update?token=1e3b3ebb6a974cb42ed31de5413df52d&type=xml HTTP/1.1
Content-Type:application/json; charset=utf-8
Host: 192.168.5.150
<?xml version="1.0" encoding="utf-8"?>
<xml>
<ivrid>4</ivrid>
<ivrname>test_ivr</ivrname>
<promptrepeat>3</promptrepeat>
<responsetimeout>5</responsetimeout>
</xml>
响应示例
HTTP/1.1 200 OK
Access-control-allow-origin: *
Access-control-allow-methods: GET, POST, OPTIONS, PUT, DELETE
{
"status": "Success"
}
HTTP/1.1 200 OK
Access-control-allow-origin: *
Access-control-allow-methods: GET, POST, OPTIONS, PUT, DELETE
<?xml version="1.0" encoding="utf-8"?>
<xml>
<status>Success</status>
</xml>