put https://api.servetel.in/v1/ivr/
Update details of IVR for given id
Using the below method details of an already created IVRS can be Updated
curl --request PUT \
--url https://api.servetel.in/v1/ivr/id \
--header 'accept: application/json' \
--header 'authorization: Authorization' \
--header 'content-type: application/json' \
--data '{}'
Path parameters
| Variable Name | Description | Data Type |
|---|---|---|
| id* | Unique ID of the IVR | String |
Request variables
| Variable Name | Description | Data Type |
|---|---|---|
| name* | Name for the IVRS | String |
| description* | Description for IVRS | String |
| recording* | Unique ID of the recording | String |
| timeout* | Time for which the IVRS will ring | Integer |
| incorrect_count* | The number of times an invalid entry is allowed | Integer |
| invalid_recording* | Recording to be played when an invalid entry is pressed | String |
| invalid_destination* | If number of invalid retries reaches more than the value set then it goes to invalid destination | String |
| timeout_retry_recording* | Recording to be played when Timeout entry is added | String |
| timeout_recording* | Recording to be played after Timeout Retry count is more than set value | String |
| timeout_destination* | If number of timeout retries reaches more than the value set then it goes to Timeout Destination | String |
| timeout_tries* | The number of times Timeout Retry is allowed | Integer |
| recording_invalid* | Recording to be played after invalid retry count is more than set value | String |
| option* | Options allowed for IVRS | Array of strings |
| destination* | Destinations for options | Array of strings |
Response variables
| Variable Name | Description | Data Type |
|---|---|---|
| success | Request success status | Boolean |
| message | Message corresponding success status | String |
curl --request PUT \
--url https://api.servetel.in/v1/ivr/1 \
--header 'accept: application/json' \
--header 'authorization: Bearer yourtokenhere' \
--header 'content-type: application/json' \
--data '{"name" : "Test IVR Name", "description" : "Test IVR Description", "recording": "recording||1", "timeout" : 30, "destination" : ["extension||0500000000"], "incorrect_count" : 1, "invalid_recording": "recording||1", "invalid_destination" : "extension||0500000000", "timeout_retry_recording" : "recording||1", "timeout_recording" : "recording||1", "timeout_destination" : "extension||0500000000", "timeout_retries" : 1, "recording_invalid" : "recording||1", "option" : ["1"]}'
