Cisco Unity Connection Provisioning Interface (CUPI) API -- User Template Post Greeting Recordings
From DocWiki
Links to Other API pages: Cisco_Unity_Connection_APIs
CUPI Guide Contents |
API Overview Index of All CUPI Documentation |
Contents |
User Template Post Greeting Recordings
The following URI can be used to view the user template object ID:
GET https://<connection-server>/vmrest/usertemplates/<usertemplateobjectid>
From the above UR, get the call handler primary template object ID:
GET https://<connection-server>/vmrestvmrest/callhandlerprimarytemplates/<CallhandlerprimarytemplatesObjectId>
Update Post Greeting Recording Settings
Request Body: <CallhandlerPrimaryTemplate> <PlayPostGreetingRecording>1</PlayPostGreetingRecording> </CallhandlerPrimaryTemplate>
The following is the response from the *PUT* request and the actual response will depend upon the information given by you:
Response Code: 204
JSON Example
To update post greeting recording settings, do the following:
Request URI: PUT https://<connection-server>/vmrest/callhandlerprimarytemplates/<ObjectId> Accept: application/json Content-type: application/json Connection: keep-alive Request Body: { "PlayPostGreetingRecording":"1" }
The following is the response from the *PUT* request and the actual response will depend upon the information given by you:
Response Code: 204
Explanation of Data Fields
Parameter | Values |
---|---|
PlayPostGreetingRecording | 0: Do Not Play Recording
1: Play Recording to All Callers 2: Play Recording Only to Unidentified Callers |
PostGreetingRecordingObjectId | Object Id of post greeting |