McDewey

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

Page 241

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

PUT https://<connection-server>/vmrest/users/<UserObjectId>/notificationdevices/phonedevices/2e377eba-a924-434b-b967-bac3815551d3 <PhoneDevice> <FailDeviceObjectId>ac200457-284c-4951-b04a-4d76bd03235e</FailDeviceObjectId> </PhoneDevice> The following is the response from the above PUT request: 204 No Content Updating other types of specialized Device resources is very similar; simply do a PUT to the appropriate pagerdevice, smsdevice, or smtpdevice resource instead of a phonedevice resource. Updating an HTML Notification Device to Apply the HTML Notification Template (in Cisco Unity Connection 9.0(1) and Later) The following is an example of the PUT request that modifies the HTML notification device as represented by <deviceid>: PUT /vmrest/users/<userobjectid>/notificationdevices/htmldevices/<deviceid> <HtmlDevice> <NotificationTemplateID>103c4514-db6e-489b-bc08-e9e131b60099</NotificationTemplateID> </HtmlDevice> The input for the PUT request will be XML or JSON as per HtmlDevice schema. The output for this request returns the successful response code. Deleting A generic Notification Device resource is read-only, so Notification Devices cannot be deleted. However, the four specialized Device resources are not read-only, so an API user can delete the appropriate specialized Device resource, assuming its not one of the factory default Device resources (which are flagged as Undeletable). Explanation of Data Fields The following chart lists all of the data fields available on Notification Devices, Phone Devices, Pager Devices, SMS Devices, and SMTP Devices. In the Device Types column, "Base" means the generic Notification Device resource. Note that on a GET to the generic Notification Device resource, you may receive data fields that are meaningless for a particular type of device, so these fields can be safely ignored. Explanation/Comments Writable? Device Type Field Name ObjectId of the Device Read Only All ObjectId Auto-set during Create. 1=Phone, 2=Pager, 4=SMTP, 5=SMS Read Only Base Type Factory default=false. For newly-created, default=true Read/Write All Active Cisco Unity Connection Provisioning Interface (CUPI) API 209 Cisco Unity Connection Provisioning Interface (CUPI) API for User Account Settings Updating an HTML Notification Device to Apply the HTML Notification Template (in Cisco Unity Connection 9.0(1) and Later)