POST /api/v0.0.1/inroute/update?token={token}&type={type}
名称 | 是否必需 | 类型 | 描述 |
name | 是 | String | 呼入路由的名称。 |
did | 否 | String | DID 匹配模式。 |
caller_id | 否 | String | 来电匹配模式。 |
desttype | 是 | String |
目的地类型。
|
dest | 是 | String | 具体目的地。 |
请求示例
POST /api/v0.0.1/inroute/update?token=813b621cfe8eecf445a2ce1f4a079ffe&type=json HTTP/1.1
Content-Type:application/json; charset=utf-8
Host: 172.16.6.150
{
"name":"test2",
"did":"",
"caller_id":"",
"desttype":"extension",
"dest":"5000"
}
POST /api/v0.0.1/inroute/update?token=813b621cfe8eecf445a2ce1f4a079ffe&type=xml HTTP/1.1
Content-Type:application/json; charset=utf-8
Host: 172.16.6.150
<?xml version="1.0" encoding="UTF-8" ?>
<xml>
<name>test2</name>
<desttype>extension</desttype>
<dest>5000</dest>
</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>