Edit an IVR
Edit the IVR settings, such as number, name, etc.
Endpoint
POST /api/v0.0.1/ivr/update?token={token}&type={type}
Request Parameters
Name | Importance | Type | Description |
ivrid | Required | String | A unique identifier of the configured IVR (IVR number). |
ivrname | Optional | String | The IVR name. Limit:
|
promptrepeat | Optional | String | How many times will the prompt be repeated.
Selectable values: 1, 2, 3, 4, 5 |
responsetimeout | Optional | Int | Response timeout in seconds.
Selectable values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 |
Examples
Request Sample
Modify the IVR number of IVR 4 to test_ivr, promptrepeat to 3, and responsetimeout to 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>
Response Sample
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>