McDewey

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

Page 297

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

Updating Message Settings The following is an example of the PUT request that updates message settings: PUT https://<connection-server>/vmrest/handlers/callhandlers/<CallhandlerObjectId> <Callhandler> <EditMsg>true</EditMsg> <MaxMsgLen>1000</MaxMsgLen> <AfterMessageAction>1</AfterMessageAction> <SendUrgentMsg>2</SendUrgentMsg> <UseCallLanguage>false</UseCallLanguage> <SendSecureMsg>false</SendSecureMsg <SendPrivateMsg>1</SendPrivateMsg> <PlayAfterMessage>2</PlayAfterMessage> </Callhandler> 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 JSON Example PUT https://<connection-server>/vmrest/handlers/callhandlers/<CallhandlerObjectId> Accept: application/json Content-type: application/json Connection: keep-alive { "AfterMessageAction":"2", "AfterMessageTargetConversation":"SystemTransfer" } 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 Updating after Message Actions Example 1: Call Handler PUT https://<connection-server>/vmrest/handlers/callhandlers/<CallhandlerObjectId> <Callhandler> <AfterMessageAction>2</AfterMessageAction> <AfterMessageTargetConversation>PHGreeting</AfterMessageTargetConversation> <AfterMessageTargetHandlerObjectId>c1fc1029-55f4-40dc-a553-40b75664ed8a</AfterMessageTargetHandlerObjectId> </Callhandler> The following is an example of the GET request that shows the call handler object ID: GET https://<connection-server>/vmrest/handlers/callhandlers Cisco Unity Connection Provisioning Interface (CUPI) API 265 Cisco Unity Connection Provisioning Interface (CUPI) API for User Template Updating Message Settings