/mcpResponse Code: 201 Sample Response: 6d9f3b85-c1df-4af8-89f3-6a975ebfb24c.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. NOTE:*Rename the .wav file which is to be uploaded as the greeting to the temporary file name generated as part of the response from step1. For eg : If the file on desktop has name "greeting.wav" and the temporary file name is 6d9f3b85-c1df-4af8-89f3-6a975ebfb24c.wav(got as part of the response of step1), then the file should be renamed to 6d9f3b85-c1df-4af8-89f3-6a975ebfb24c.wav before step 2 is performed. • 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. Default setting: 90 seconds. PUT /vmrest/voicefiles/<temporary file name>< /pre> Response Code: 204 The content gets accepted and copied into the temporary file. JSON Example To use the temporary file name, do the following: Request URI: PUT https://<connection server>/vmrest/voicefiles/<temporary file name> Content-Type: audio/wav Connection: keep-alive Response Code: 204 Step 3: Set the Greeting field of the target resource. Both POST/ PUT can be used for adding a greeting. The PUT request should be used for updating the greeting with a new stream file. POST https://<connection- server>/vmrest/handlers/directoryhandlers/<directoryhandlerObjectId>/directoryhandlerstreamfiles /1033 Request Body: <DirectoryHandlerStreamFile> <StreamFile>7acbfec8-25a3-4b02-bd23-2b61acc175c9.wav</StreamFile> </DirectoryHandlerStreamFile > Response Code: 201 JSON Example To set the greeting field of the target resource, do the following: Request URI: POST https://<connection-server>/vmrest/handlers/directoryhandlers/<directoryhandlerObjectId>/directoryhandlerstreamfiles/1033 Accept: application/json Content-Type: application/json Connection: keep-alive Request Body: { "StreamFile":"050590b8-fb8f-4e8d-ab17-4e29eab7d412.wav" } Cisco Unity Connection Provisioning Interface (CUPI) API 548 Cisco Unity Connection Provisioning Interface (CUPI) API--Directory Handler APIs Add or Update Greeting by Uploading File from the Desktop