Cisco Unity Connection Provisioning Interface (CUPI) API -- HTML Notification Template Administrative Replaceable Images

From DocWiki

Revision as of 10:14, 14 June 2012 by Deeptija (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Links to Other API pages: Cisco Unity Connection APIs

CUPI Guide Contents
API Overview
Index of All CUPI Documentation

Contents


About Administrative Replaceable Images

The administrator has rights to replace the default images for the following status items:

  • Deleted_message
  • MWI_OFF
  • MWI_ON
  • Read_message
  • Read_urgent_message
  • Unread_message
  • Unread_urgent_message

These images can anytime reset to default through the Restore Default option given on the Search Replaceable Images page. The addition or deletion of any image is not allowed in the given default list.


Listing of the Administrative Replaceable Images

The following is an example of the GET request that lists all the replaceable images:

   GET https://<connection-server>/vmrest/replaceableimages

The following is an example of the response from the above *GET* request and the actual respone will depend upon the information given by you.


 <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
 <ReplaceableImages>
      <ReplaceableImage>
          <URI>/vmrest/replaceableimages/9ab493f8-5e8e-4f0c-82a8-a43308d460d8</URI>
          <DisplayName>deleted_message</DisplayName>
          <ImageName>deleted_message.png</ImageName>
          <ImageSize>128*128</ImageSize>
          <ObjectId>9ab493f8-5e8e-4f0c-82a8-a43308d460d8</ObjectId>
          <ImagePreviewURI>/vmrest/replaceableimages/deleted_message/image</ImagePreviewURI>
       </ReplaceableImage>
  <ReplaceableImage>
          <URI>/vmrest/replaceableimages/c6d3173e-ce2b-406a-9d34-3b1c13093f0b</URI>
          <DisplayName>mwi_off</DisplayName>
          <ImageName>test1.GIF</ImageName>
          <ImageSize>387*232</ImageSize>
          <ObjectId>c6d3173e-ce2b-406a-9d34-3b1c13093f0b</ObjectId>
          <ImagePreviewURI>/vmrest/replaceableimages/mwi_off/image</ImagePreviewURI>
  </ReplaceableImage>
</ReplaceableImages>


Viewing of the Administrative Replaceable Images

The following is an example of the GET request that lists the details of specific administrative replaceable images represented by the provided value of object id:

   GET https://<connection-server>/vmrest/replaceableimages/<objectid>

The following is the response from the above *GET* request.


  <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  <ReplaceableImage>
    <URI>/vmrest/replaceableimages/9ab493f8-5e8e-4f0c-82a8-a43308d460d8</URI>
    <DisplayName>deleted_message</DisplayName>
    <ImageName>deleted_message.png</ImageName>
    <ImageSize>128*128</ImageSize>
    <ObjectId>9ab493f8-5e8e-4f0c-82a8-a43308d460d8</ObjectId>
    <ImagePreviewURI>/vmrest/replaceableimages/deleted_message/image</ImagePreviewURI>
  </ReplaceableImage>

Modifying an existing Administrative Replaceable Image

The following is an example of the PUT request that modifies an existing administrative replaceable image as represented by object id. An image file attachment is required as a multipart PUT request.


   PUT https://<connection-server>/vmrest/replaceableimages/<objectid> 
   REQUEST: An image file attachment is required as a multipart PUT request. 
   RESPONSE Code: 204 
   RESPONSE Text: [[Image:Icon privacy.png]]

Viewing an existing Administrative Replace Image corresponding to a Display Name

The following is an example of the GET request that allows you to view an existing replaceable image corresponding to its display name:

   GET https://<connection-server>/vmrest/replaceableimages/<displayname>/image


Restoring the Default Images for Administrative Replaceable Images

The following is an example of the PUT request that restores the system default images for administrative replaceable images:

   PUT https://<connection-server>/vmrest/replaceable images/<displayname>/restore

The output for this request returns the successful response code.

REQUEST: <No input is required>

RESPONSE Code: 204   

Rating: 0.0/5 (0 votes cast)

Personal tools