Skip to main content

Uniphore Customer Portal

Replace Audio File

Replaces an existing audio file stored in an AWS S3 bucket with a new file from the local drive. This API is used to replace a single audio file only.

Endpoint

Method: PUT

URL:https://<tenant namespace url>/cse/replaceAudioFile/<tenant-name>/tenantName/<connector-name>/connector/<tenand-id>/tenantId

curl -X PUT "https://uselfserve-uss-tenant.com/cse/replaceAudioFile/uss-tenant/tenantName/twilio/connector/uss-tenant-1/tenantId" 
     -H "accept: application/json" 
     -H "Content-Type: multipart/form-data" 
     -d {"file":{}} 
Header Parameter

Authorization - Bearer Token

Request Parameters

Parameter Name

Data Type

Description

Required/ Optional

file

File

Select the audio file which needs to replace the existing audio file.

Ensure the name of the existing audio file and new audio file are the same.

The audio file should be in 16 bit mono, pcm, wav format with a sample rate of 8000 Hz.

Required

Response and Error Codes

Response Code

Condition

200

OK

201

Created

401

Unauthorized

403

Forbidden

404

Not Found