Media

Upload IVR Prompt or Account Hold Music

This endpoint has two fairly distinct modes of operation.<br/> 1. IVR Prompts: requires a wav file and returns a Media object.<br/> 2. Hold Music: requires a jobUploadKey and returns a Job object.<span hidden><br/><br/> Please see <a href="media.html">here</a> for more information on how this endpoint is used for each case.</span>

post/v2/partition/{partitionId}/account/{accountId}/media_2

Request

Path parameters

accountIdstring required

ID of account. Refer to <a href="#/~schema/Account">account.id</a>

partitionIdstring required

ID of partition. Refers to <a href="#/~schema/Account">account.partitionId</a> which refers to <a href="#/~schema/PartitionX">partition.id</a>

Query parameters

jobUploadKeystring

(Use only for Hold Music) Provide an upload key which identifies music uploaded in a prior step. Refers to <a href="#/~schema/JobUpload">jobUpload.key</a>

Request body multipart/form-data

filestring binary

Bytes of wave File to upload.

Response

This response type pertains when the endpoint is used for IVR prompt, and is supplied a file in the body. The provided audio file has been processed and uploaded.

idstring
urlstring

Changes

No recorded changes to this operation across all 1 revision of this API.