Add or Replace Multiple Audio Files
Add or replace multiple audio files for the selected Connector at tenant level. The added audio files are stored in an AWS S3 bucket. To add multiple audio files, store the audio files in a folder and compress into a zip file.
Endpoint
Method: POST
URL: https://<tenant namespace url>/replaceAudioFiles/<tenant-name>/tenantName/<connector-name>/connector/<tenant-id>/tenantId
curl -X POST "http://localhost:port/replaceAudioFiles/uss-tenant/tenantName/exotel/connector/uss-tentant1/tenantId" -H "accept: application/json" -H "Content-Type: multipart/form-data" -F "file=@audiofolder.zip;type=application/x-zip-compressed"
Header Parameter
Authorization - Bearer Token
Path Parameters
Parameter Name | Data Type | Description | Required/ Optional |
---|---|---|---|
| String | Name of the connector that uses the audio file. Currently supports Exotel and Twilio connector. | Required |
| String | Id of the tenant that is associated to the selected connector. To know the | Required |
| String | Name of the tenant. To know the | Required |
Request Parameters
Parameter Name | Data Type | Description | Required/ Optional |
---|---|---|---|
| File | Select the zip file containing the audio files. To create a zip file, add all audio files to a folder and compress it. If you wish to replace the audio files, ensure the name of the new audio files and the files to be replaced are the same. | Required |
Response and Error Codes
Response Code | Condition |
---|---|
200 | OK |
201 | Created |
401 | Unauthorized |
403 | Forbidden |
404 | Not Found |