McDewey

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

Page 582

↗ View in doc context
page
582
source
unity-connection/rest-api/cupi/cupi.md
chunk_id
unity-connection::rest-api::cupi::cupi::548

The following is the response from the above PUT request and the actual response will depend upon the information given by you: Response Code: 204 Use the following URL in browser to play the stream file: Use the following URL in browser to play the stream file: https://<connection- server>/vmrest/handlers/directoryhandlers/<DirectoryHandlerObjectId>/directoryhandlerstreamfiles/10 33/audio Update the Greeting using the Input Stream The Directory Handler greeting can also be updated using the Input Stream. An input stream can be created from the wav file and passed as the request body. The URL for this should be : <connection- server>/vmrest/handlers/directoryhandlers/<DirectoryHandlerObjectId>/directoryhandlerstreamfiles/10 33/audio Update the Greeting using the Input Stream The Directory Handler greeting can also be updated using the Input Stream. An input stream can be created from the wav file and passed as the request body. The URL for this should be : RequestURI : https://<connectionserver>/vmrest/handlers/directoryhandlers/<directoryhandlerobjectid>/directoryhan dlerstreamfiles/1033/audio. The request body should be like this: put.setRequestBody(new FileInputStream(file3)); Here put is the PUT request created, file3 is the wav file which user want to upload. Also the content type for the request should be passed as "audio/wav". Following URL can be used to listen to the greeting associated with the directory handler. Paste the URL in the browser and listen to the uploaded greeting: https://<connectionserver>/vmrest/handlers/directoryhandlers/<directoryhandlerobjectid>/directoryhan dlerstreamfiles/1033/audio Explanation of Data Fields Comments Data Type Operations Parameter Object ID of the custom recording. String (36) Read Only DirectoryHandlerObjectId Specifies the enumeration type. Integer Read/Write LanguageCode Contains the .wav file that has been sent. String (40) Read/Write StreamFile To fetch the languages installed on a Unity Connection server, use the following URL: Note GET https://<connection-server>/vmrest/installedlanguages For more information on the Language Map API, please refer to the following document: http://docwiki.cisco.com/wiki/Cisco_Unity_Connection_Provisioning_Interface_%28CUPI%29_API_--_Language_Map Cisco Unity Connection Provisioning Interface (CUPI) API 550 Cisco Unity Connection Provisioning Interface (CUPI) API--Directory Handler APIs Explanation of Data Fields