/v1/ivr/{id}

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 NameDescriptionData Type
id*Unique ID of the IVRString

Request variables

Variable NameDescriptionData Type
name*Name for the IVRSString
description*Description for IVRSString
recording*Unique ID of the recordingString
timeout*Time for which the IVRS will ringInteger
incorrect_count*The number of times an invalid entry is allowedInteger
invalid_recording*Recording to be played when an invalid entry is pressedString
invalid_destination*If number of invalid retries reaches more than the value set then it goes to invalid destinationString
timeout_retry_recording*Recording to be played when Timeout entry is addedString
timeout_recording*Recording to be played after Timeout Retry count is more than set valueString
timeout_destination*If number of timeout retries reaches more than the value set then it goes to Timeout DestinationString
timeout_tries*The number of times Timeout Retry is allowedInteger
recording_invalid*Recording to be played after invalid retry count is more than set valueString
option*Options allowed for IVRSArray of strings
destination*Destinations for optionsArray of strings

Response variables

Variable NameDescriptionData Type
successRequest success statusBoolean
messageMessage corresponding success statusString
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"]}'
Language
Click Try It! to start a request and see the response here!