McDewey

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

Page 119

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

Create Phone Device The mandatory fields are DisplayName, PhoneNumber, and MediaSwitchObjectId. POST https://<connection-server>/vmrest/users/<user-objectid>/notificationdevices/phonedevices <PhoneDevice> <DisplayName>Work Phone1</DisplayName> <PhoneNumber>123</PhoneNumber> <MediaSwitchObjectId>ae63574f-2aaf-4c28-8973-bfa8e3b1dd1c</MediaSwitchObjectId> </PhoneDevice> The following is the response from the above POST request and the actual response will depend upon the information given by you: Response Code: 201 JSON Example POST https://<connection-server>/vmrest/users/<user-objectid>/notificationdevices/phonedevices Accept: application/json Content-type: application/json Connection: keep-alive { "DisplayName":"Work Phone1", "PhoneNumber":"123", "MediaSwitchObjectId":"ae63574f-2aaf-4c28-8973-bfa8e3b1dd1c" } The following is the response from the above POST request and the actual response will depend upon the information given by you: Response Code: 201 URI to get ID for phone system: https://<connection-server>/vmrest/phonesystems Update Phone Device PUT:https://<connection-server>/vmrest/users/<user-objectid>/notificationdevices/phonedevices/<phone_objectid> <PhoneDevice> <RetriesOnBusy>10</RetriesOnBusy> <RetriesOnRna>10</RetriesOnRna> <RingsToWait>10</RingsToWait> <RnaRetryInterval>1</RnaRetryInterval> </PhoneDevice> 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 Cisco Unity Connection Provisioning Interface (CUPI) API 87 Cisco Unity Connection Provisioning Interface (CUPI) API -- User Notification Devices API Create Phone Device