McDewey

Multi-vendor documentation library · semantic search · MCP endpoint at /mcp

Page 44

↗ View in doc context
page
44
source
unity-connection/rest-api/cuti/cuti.md
chunk_id
unity-connection::rest-api::cuti::cuti::39

JSON Example POST https://<connection-sever>/vmrest/voicefiles Accept: application/json Content-Type; application/json Connection: keep-alive Response Code: 201 0ad46c53-44eb-4da6-988c-4f07fabc6bdd.wav Step 2 Use the temporary file name to put the new audio data. The HTTP content type is "audio/wav" and the payload content is the audio data. The length of the greeting can be set under the System Settings > General Configuration settings. Here you can enter the maximum length for system call handler greetings. The range is 1 to 1,200 seconds and default setting is 90 seconds. Note The request is as follows: PUT https://<connection-server>/vmrest/voicefiles/<temporary file name> Response Code: 204 The content has been accepted and copied into the temporary file. JSON Example POST https://<connection-sever>/vmrest/voicefiles/<temporary file name> Accept: application/json Content-Type; application/json Connection: keep-alive Response Code: 204 Step 3 Add the file to the voice name. The request is as follows: PUT https://<connection-server>/vmrest/handlers/callhandlers/<callhandlerobjectid> Request Body: <CallHandler> <VoiceName>0ad46c53-44eb-4da6-988c-4f07fabc6bdd.wav</VoiceName> </CallHandler> Response Code: 201 JSON Example POST https://<connection-sever>/vmrest/handlers/callhandlers/<callhandlerobjectid> Accept: application/json Content-Type; application/json Connection: keep-alive Request Body: { "VoiceName":"0ad46c53-44eb-4da6-988c-4f07fabc6bdd.wav" } Response Code: 201 Cisco Unity Connection Telephony Interface (CUTI) API 40 Cisco Unity Connection Provisioning Interface (CUTI) API -- Voice Name Upload for Call Handlers Add/ Update the Voice Name for Call Handler by Uploading a File From the Desktop