


 



<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://docwiki.cisco.com/w/skins/common/feed.css?270"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://docwiki.cisco.com/w/index.php?title=Cisco_Unity_Connection_Provisioning_Interface_(CUPI)_API_--_HTML_Notification_Template_Custom_Graphics&amp;feed=atom&amp;action=history</id>
		<title>Cisco Unity Connection Provisioning Interface (CUPI) API -- HTML Notification Template Custom Graphics - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://docwiki.cisco.com/w/index.php?title=Cisco_Unity_Connection_Provisioning_Interface_(CUPI)_API_--_HTML_Notification_Template_Custom_Graphics&amp;feed=atom&amp;action=history"/>
		<link rel="alternate" type="text/html" href="http://docwiki.cisco.com/w/index.php?title=Cisco_Unity_Connection_Provisioning_Interface_(CUPI)_API_--_HTML_Notification_Template_Custom_Graphics&amp;action=history"/>
		<updated>2013-05-26T06:20:46Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.16.0</generator>

	<entry>
		<id>http://docwiki.cisco.com/w/index.php?title=Cisco_Unity_Connection_Provisioning_Interface_(CUPI)_API_--_HTML_Notification_Template_Custom_Graphics&amp;diff=46142&amp;oldid=prev</id>
		<title>Deeptija: 1 revision</title>
		<link rel="alternate" type="text/html" href="http://docwiki.cisco.com/w/index.php?title=Cisco_Unity_Connection_Provisioning_Interface_(CUPI)_API_--_HTML_Notification_Template_Custom_Graphics&amp;diff=46142&amp;oldid=prev"/>
				<updated>2012-06-14T10:14:04Z</updated>
		
		<summary type="html">&lt;p&gt;1 revision&lt;/p&gt;
&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 10:14, 14 June 2012&lt;/td&gt;
		&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Deeptija</name></author>	</entry>

	<entry>
		<id>http://docwiki.cisco.com/w/index.php?title=Cisco_Unity_Connection_Provisioning_Interface_(CUPI)_API_--_HTML_Notification_Template_Custom_Graphics&amp;diff=46141&amp;oldid=prev</id>
		<title>Suniaror: Created page with &quot;'''Links to Other API pages:''' Cisco_Unity_Connection_APIs {| align=&quot;right&quot; border=&quot;1&quot; |align=&quot;center&quot;|'''CUPI Guide Contents''' |- |[[Cisco Unity Connection Provisioning In...&quot;</title>
		<link rel="alternate" type="text/html" href="http://docwiki.cisco.com/w/index.php?title=Cisco_Unity_Connection_Provisioning_Interface_(CUPI)_API_--_HTML_Notification_Template_Custom_Graphics&amp;diff=46141&amp;oldid=prev"/>
				<updated>2012-06-03T08:01:01Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;#39;&amp;#39;&amp;#39;Links to Other API pages:&amp;#39;&amp;#39;&amp;#39; &lt;a href=&quot;/wiki/Cisco_Unity_Connection_APIs&quot; title=&quot;Cisco Unity Connection APIs&quot;&gt;Cisco_Unity_Connection_APIs&lt;/a&gt; {| align=&amp;quot;right&amp;quot; border=&amp;quot;1&amp;quot; |align=&amp;quot;center&amp;quot;|&amp;#39;&amp;#39;&amp;#39;CUPI Guide Contents&amp;#39;&amp;#39;&amp;#39; |- |[[Cisco Unity Connection Provisioning In...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;'''Links to Other API pages:''' [[Cisco_Unity_Connection_APIs]]&lt;br /&gt;
{| align=&amp;quot;right&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|'''CUPI Guide Contents'''&lt;br /&gt;
|-&lt;br /&gt;
|[[Cisco Unity Connection Provisioning Interface (CUPI) API|API Overview ]]&amp;lt;br&amp;gt;[[Cisco Unity Connection Provisioning Interface (CUPI) API -- Index of All CUPI Documentation|Index of All CUPI Documentation]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== About Custom Graphics ==&lt;br /&gt;
&lt;br /&gt;
Administrator can use the CUPI APIs to list, view, create, update, and delete the custom graphics. The custom graphics are used for adding logos and images within an HTML template . The images can also be used to define image based template structure. You can try , for example, you can use the default custom graphic as 'Default_Dynamic_Icons'.To insert a graphic directly in the notification template as specified by administrator under the Templates &amp;gt; Notification Templates &amp;gt; Custom Graphics page, you can use the &amp;lt;img src=&amp;quot;%GRAPHIC1%&amp;quot;&amp;gt;&amp;lt;/img&amp;gt; tag.&lt;br /&gt;
&lt;br /&gt;
== Listing of the Custom Graphics ==&lt;br /&gt;
&lt;br /&gt;
The following is an example of the GET request that lists all the custom graphics:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
   GET https://&amp;lt;connection-server&amp;gt;/vmrest/customgraphics&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The following is an example of the response from the above *GET* request and the actual respone will depend upon the information has been provided by you.&lt;br /&gt;
&lt;br /&gt;
   &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot; standalone=&amp;quot;yes&amp;quot;?&amp;gt;&lt;br /&gt;
   &amp;lt;CustomGraphics total=&amp;quot;2&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;CustomGraphic&amp;gt;&lt;br /&gt;
         &amp;lt;URI&amp;gt;/vmrest/customgraphics/4a9872d8-df00-4e17-b382-1a01c58a99b6&amp;lt;/URI&amp;gt;&lt;br /&gt;
         &amp;lt;DisplayName&amp;gt;Logo&amp;lt;/DisplayName&amp;gt;  &lt;br /&gt;
         &amp;lt;ImageName&amp;gt;logo.jpg&amp;lt;/ImageName&amp;gt;&lt;br /&gt;
         &amp;lt;ImageSize&amp;gt;2048*1536&amp;lt;/ImageSize&amp;gt;&lt;br /&gt;
         &amp;lt;ObjectId&amp;gt;4a9872d8-df00-4e17-b382-1a01c58a99b6&amp;lt;/ObjectId&amp;gt;&lt;br /&gt;
         &amp;lt;ImagePreviewURI&amp;gt;/vmrest/customgraphics/logo/image&amp;lt;/ImagePreviewURI&amp;gt;&lt;br /&gt;
      &amp;lt;/CustomGraphic&amp;gt;&lt;br /&gt;
      &amp;lt;CustomGraphic&amp;gt;&lt;br /&gt;
        &amp;lt;URI&amp;gt;/vmrest/customgraphics/c7ee3657-f796-464c-8e64-3706318439d1&amp;lt;/URI&amp;gt;&lt;br /&gt;
        &amp;lt;DisplayName&amp;gt;Logo2&amp;lt;/DisplayName&amp;gt;&lt;br /&gt;
        &amp;lt;ImageName&amp;gt;logo2.jpg&amp;lt;/ImageName&amp;gt;&lt;br /&gt;
        &amp;lt;ImageSize&amp;gt;2048*1536&amp;lt;/ImageSize&amp;gt;&lt;br /&gt;
        &amp;lt;ObjectId&amp;gt;c7ee3657-f796-464c-8e64-3706318439d1&amp;lt;/ObjectId&amp;gt;&lt;br /&gt;
        &amp;lt;ImagePreviewURI&amp;gt;/vmrest/customgraphics/Logo2/image&amp;lt;/ImagePreviewURI&amp;gt;&lt;br /&gt;
       &amp;lt;/CustomGraphic&amp;gt;&lt;br /&gt;
   &amp;lt;/CustomGraphics&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Viewing of the Custom Graphics ==&lt;br /&gt;
&lt;br /&gt;
The following is an example of the GET request that displays a specific custom graphic represented by the provided value of object id:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    GET https://&amp;lt;connection-server&amp;gt;/vmrest/customgraphics/&amp;lt;objectid&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The following is an example of the response from the above *GET* request and the actual response will depend upon the information provided by you.&lt;br /&gt;
   &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot; standalone=&amp;quot;yes&amp;quot;?&amp;gt;&lt;br /&gt;
   &amp;lt;CustomGraphic&amp;gt;&lt;br /&gt;
      &amp;lt;URI&amp;gt;/vmrest/customgraphics/4a9872d8-df00-4e17-b382-1a01c58a99b6&amp;lt;/URI&amp;gt;&lt;br /&gt;
      &amp;lt;DisplayName&amp;gt;Logo&amp;lt;/DisplayName&amp;gt;&lt;br /&gt;
      &amp;lt;ImageName&amp;gt;logo.jpg&amp;lt;/ImageName&amp;gt;&lt;br /&gt;
      &amp;lt;ImageSize&amp;gt;2048*1536&amp;lt;/ImageSize&amp;gt;&lt;br /&gt;
      &amp;lt;ObjectId&amp;gt;4a9872d8-df00-4e17-b382-1a01c58a99b6&amp;lt;/ObjectId&amp;gt; &lt;br /&gt;
      &amp;lt;ImagePreviewURI&amp;gt;/vmrest/customgraphics/Logo/image&amp;lt;/ImagePreviewURI&amp;gt;&lt;br /&gt;
   &amp;lt;/CustomGraphic&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Creating the Custom Graphics ==&lt;br /&gt;
&lt;br /&gt;
The following is an example of the POST request that creates a custom graphic, where multipart POST request is required for XML and image:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;    &lt;br /&gt;
POST https://&amp;lt;connection-server&amp;gt;/vmrest/customgraphics&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
First part: XML attachment&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot; standalone=&amp;quot;yes&amp;quot;?&amp;gt;&lt;br /&gt;
  &amp;lt;CustomGraphic&amp;gt;&lt;br /&gt;
     &amp;lt;DisplayName&amp;gt;Logo&amp;lt;/DisplayName&amp;gt;&lt;br /&gt;
  &amp;lt;/CustomGraphic&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Second part: Image File as an attachment&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
RESPONSE Code: 201&lt;br /&gt;
&lt;br /&gt;
RESPONSE Text: /vmrest/customgraphics/a1876b36-1095-488b-b810-20554ff51c42&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: The file must not be more than 1 MB in size.&lt;br /&gt;
&lt;br /&gt;
== Updating the Custom Graphics ==&lt;br /&gt;
&lt;br /&gt;
The following is an example of the PUT request that allows you to update the custom graphic by mentioning its object ID. &lt;br /&gt;
&lt;br /&gt;
An image file attachment is required as a multipart PUT request.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
   PUT https://&amp;lt;connection-server&amp;gt;/vmrest/customgraphics/&amp;lt;objectid&amp;gt;&lt;br /&gt;
   RESPONSE Code: 204&lt;br /&gt;
   RESPONSE Text: [[File:Icon_privacy.png]]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note: The file must not be more than 1 MB in size.&lt;br /&gt;
&lt;br /&gt;
== Deleting the Custom Graphics  ==&lt;br /&gt;
&lt;br /&gt;
The following is an example of the DELETE request that deletes a specific graphic for the selected object ID:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
   DELETE https://&amp;lt;connection-server&amp;gt;/vmrest/customgraphics/&amp;lt;objectid&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The output for this request returns the successful response code.&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
[[Category:Cisco Unity Connection Provisioning Interface (CUPI) API]]&lt;/div&gt;</summary>
		<author><name>Suniaror</name></author>	</entry>

	</feed>