Update Voice IVR Scenarios
This method allows you to update a Voice IVR Scenario.
Authorizations:
Request rate limit:
path Parameters
id required | string Scenario identifier. |
Request Body schema:
application/jsonname required | string The name of IVR scenario. | ||||||||||||||||||||
description | string Description of IVR scenario. | ||||||||||||||||||||
script required | Array of Call API (object) or Capture (object) or Collect (object) or Dial (object) or Dial To Many (object) or Dial To WebRTC (object) or Dial To Conversations (object) or For Each (object) or Go To (object) or Hang-up (string) or If Then Else (object) or Machine Detection (string) or Pause (object) or Play (object) or Play From Recording (object) or Record (object) or Repeat Until (object) or Repeat While (object) or Say (object) or Send SMS (object) or Set Variable (object) or Switch Case (object) or While Do (object) Array of IVR actions defining scenario. NOTE: Answering Machine Detection, Call Recording and Speech Recognition (used for Capture action) are add-on features. To enable these add-ons, please contact our sales organisation. | ||||||||||||||||||||
Array One of
Call API Action performs an HTTP request to a client’s endpoint, and (if told to) processes the response data. If collectResponse is set, the system will attempt to parse the response from the server. Our platform needs to be able to make HTTP requests to the specified endpoint.
|
Responses
successful response
Bad Request
Unauthorized
Forbidden
Not Found
Too Many Requests
Internal Server Error
Request samples
- Payload
- cURL
- Java
- C#
- Go
- Python
- PHP
- JavaScript
- NodeJs
- Ruby
Call API
{- "name": "Call API",
- "description": "Perform a POST request to provided URL with headers and payload.",
- "script": [
- {
- "options": {
- "method": "POST",
- "headers": {
- "content-type": "application/json"
}, - "body": {
- "payload": "${to} finished the IVR."
}
}
}
]
}
Response samples
- 200
- 400
- 401
- 403
- 404
- 429
- 500
[- {
- "id": "E83E787CF2613450157ADA3476171E3F",
- "name": "My Scenario",
- "description": "Scenario to send a message",
- "createTime": "2023-09-14T15:13:36.735+0000",
- "updateTime": "2023-09-14T16:20:32.432+0000",
- "lastUsageDate": "2023-09-14",
- "script": [
- {
- "sendSms": {
- "text": "Hello",
- "to": "${to}"
}
}
]
}
]
Need assistance
Encountering issues
What's new? Check out
Unsure about a term? See