


 



<?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_Templates&amp;feed=atom&amp;action=history</id>
		<title>Cisco Unity Connection Provisioning Interface (CUPI) API -- HTML Notification Templates - 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_Templates&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_Templates&amp;action=history"/>
		<updated>2013-05-22T00:36:31Z</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_Templates&amp;diff=46138&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_Templates&amp;diff=46138&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_Templates&amp;diff=46137&amp;oldid=prev</id>
		<title>Suniaror: /* About HTML Notification Templates */</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_Templates&amp;diff=46137&amp;oldid=prev"/>
				<updated>2012-06-03T09:09:36Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;About HTML Notification Templates&lt;/span&gt;&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 HTML Notification Templates ==&lt;br /&gt;
&lt;br /&gt;
In Cisco Unity Connection 9.0(1) and later, the administrator can use the CUPI APIs for template listing, viewing, creation, selection, and deletion. The settings from the template get applied to the notifications as they are sent. The administrator can create any number of the HTML-based templates and can further assign those templates for use to specific HTML-based notification devices.&lt;br /&gt;
&lt;br /&gt;
== Listing of HTML Notification Templates ==&lt;br /&gt;
&lt;br /&gt;
The following is an example of the GET request that lists all the notification templates&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
   GET https://&amp;lt;connection-server&amp;gt;/vmrest/notificationtemplates&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The following is an example of the response from the above *GET* request and the actual result will depend upon the information has been provided by you.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
New Template&lt;br /&gt;
&lt;br /&gt;
Test Template&lt;br /&gt;
&lt;br /&gt;
OK&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;NotificationTemplates total=&amp;quot;2&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;NotificationTemplate&amp;gt;&lt;br /&gt;
        &amp;lt;URI&amp;gt;/vmrest/notificationtemplates/f265c517-ec77-4b7c-9520-be007b8410c4&amp;lt;/URI&amp;gt;&lt;br /&gt;
        &amp;lt;NotificationTemplateID&amp;gt;f265c517-ec77-4b7c-9520-be007b8410c4&amp;lt;/NotificationTemplateID&amp;gt;&lt;br /&gt;
        &amp;lt;NotificationTemplateName&amp;gt;New Template&amp;lt;/NotificationTemplateName&amp;gt;&lt;br /&gt;
      &amp;lt;/NotificationTemplate&amp;gt;&lt;br /&gt;
      &amp;lt;NotificationTemplate&amp;gt;&lt;br /&gt;
       &amp;lt;URI&amp;gt;/vmrest/notificationtemplates/cd684c05-c8e6-4897-8d79-73da5a36290&amp;lt;/URI&amp;gt;&lt;br /&gt;
       &amp;lt;NotificationTemplateID&amp;gt;cd684c05-c8e6-4897-8d79-73da5a36290&amp;lt;/NotificationTemplateID&amp;gt;&lt;br /&gt;
       &amp;lt;NotificationTemplateName&amp;gt;Test Template&amp;lt;/ NotificationTemplateName&amp;gt;&lt;br /&gt;
      &amp;lt;/NotificationTemplate&amp;gt;&lt;br /&gt;
   &amp;lt;/NotificationTemplates&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Viewing of HTML Notification Templates ==&lt;br /&gt;
&lt;br /&gt;
The following is an example of the GET request that lists the specific notification template represented by the provided value of notification template id:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
   GET https://&amp;lt;connection-server&amp;gt;/vmrest/notificationtemplates/&amp;lt;notificationtemplateid&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 result will depend upon the information has been provided by you.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Test Template&lt;br /&gt;
&lt;br /&gt;
OK&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;NotificationTemplate&amp;gt;&lt;br /&gt;
         &amp;lt;URI&amp;gt;/vmrest/notificationtemplates/cd684c05-c8e6-4897-8d79-73da5a36290&amp;lt;/URI&amp;gt;&lt;br /&gt;
         &amp;lt;NotificationTemplateID&amp;gt;cd684c05-c8e6-4897-8d79-73da5a36290&amp;lt;/NotificationTemplateID&amp;gt;&lt;br /&gt;
         &amp;lt;NotificationTemplateName&amp;gt;Test Template&amp;lt;/NotificationTemplateName&amp;gt;&lt;br /&gt;
         &amp;lt;Content&amp;gt;&amp;amp;lt;![CDATA[&amp;lt;HTML&amp;gt;&amp;lt;TITLE&amp;gt;Notification&amp;lt;/TITLE&amp;gt;&amp;lt;BODY&amp;gt;&amp;lt;H3&amp;gt;There is a voice message for you. &amp;lt;/H3&amp;gt;&lt;br /&gt;
         &amp;lt;BR&amp;gt;Please click on following link to access voice message.%MESSAGE_MINI_PLAY%&amp;lt;H4&amp;gt;&amp;lt;I&amp;gt; &lt;br /&gt;
         Disclaimer: This email may contain confidential and &lt;br /&gt;
         privileged material for the sole use of the intended recipient.&amp;lt;/I&amp;gt;&amp;lt;/H4&amp;gt;&amp;lt;/BODY&amp;gt;&amp;lt;/HTML&amp;gt;]]&amp;amp;gt;&lt;br /&gt;
     &amp;lt;/Content&amp;gt;&lt;br /&gt;
     &amp;lt;/NotificationTemplate&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Creating the HTML Notification Templates ==&lt;br /&gt;
&lt;br /&gt;
The following is an example of the POST request that creates a notification template&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
POST https://&amp;lt;connection-server&amp;gt;/vmrest/notificationtemplates:&lt;br /&gt;
&amp;lt;/pre&amp;gt; &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;NotificationTemplate&amp;gt;&lt;br /&gt;
           &amp;lt;NotificationTemplateName&amp;gt;New Template&amp;lt;/ NotificationTemplateName&amp;gt;&lt;br /&gt;
           &amp;lt;Content&amp;gt;![CDATA[&amp;lt;HTML&amp;gt;&amp;lt;TITLE&amp;gt;Notification&amp;lt;/TITLE&amp;gt;&amp;lt;BODY&amp;gt;&amp;lt;H3&amp;gt;There is a voice message for you.&amp;lt;/H3&amp;gt;&amp;lt;BR&amp;gt;Please click on following&lt;br /&gt;
            link to access voice message.%MESSAGE_MINI_PLAY%&amp;lt;H4&amp;gt; &amp;lt;br&amp;gt; Message Status : &amp;lt;img src=&amp;quot;%MESSAGE_STATUS%&amp;quot; /&amp;gt; &amp;lt;br&amp;gt; &amp;lt;I&amp;gt;%Disclaimer% &lt;br /&gt;
            By using custom variable : This email may contain confidential and privileged material &lt;br /&gt;
           for the sole use of the intended recipient.&amp;lt;/I&amp;gt;&amp;lt;/H4&amp;gt;&amp;lt;/BODY&amp;gt;&amp;lt;/HTML&amp;gt;]]&amp;lt;/Content&amp;gt;       &lt;br /&gt;
       &amp;lt;/NotificationTemplate&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
     &lt;br /&gt;
The following is an example of the response from the above *Post* request.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
     /vmrest/notificationtemplates/a1876b36-1095-488b-b810-20554ff51c42&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Updating the HTML Notification Templates ==&lt;br /&gt;
&lt;br /&gt;
The following is an example of the PUT request that allows you to update the content of the notification template by mentioning the notification template ID&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
PUT https://&amp;lt;connection-server&amp;gt;/vmrest/notificationtemplates/&amp;lt;notificationtemplateid&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&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;NotificationTemplate&amp;gt;&lt;br /&gt;
    &amp;lt;NotificationTemplateName&amp;gt;Test Template&amp;lt;/ NotificationTemplateName&amp;gt;&lt;br /&gt;
    &amp;lt;Content&amp;gt;![CDATA[&amp;lt;HTML&amp;gt;&amp;lt;TITLE&amp;gt;Notification&amp;lt;/TITLE&amp;gt;&amp;lt;BODY&amp;gt;&amp;lt;H3&amp;gt;There is a voice message for you. &amp;lt;/H3&amp;gt;&lt;br /&gt;
       &amp;lt;BR&amp;gt;Please click on following link to access voice message.%MESSAGE_MINI_PLAY%&amp;lt;H4&amp;gt;&amp;lt;I&amp;gt;&lt;br /&gt;
       Disclaimer: This email may contain confidential and &lt;br /&gt;
       privileged material for the sole use of the intended recipient.&amp;lt;/I&amp;gt;&amp;lt;/H4&amp;gt;&amp;lt;/BODY&amp;gt;&amp;lt;/HTML&amp;gt;]]&lt;br /&gt;
    &amp;lt;/Content&amp;gt;&lt;br /&gt;
 &amp;lt;/NotificationTemplate&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The output for this request returns the successful response code.&lt;br /&gt;
&lt;br /&gt;
== Deleting the HTML Notification Templates ==&lt;br /&gt;
&lt;br /&gt;
The following is an example of the DELETE request that deletes a specific notification template where you need to mention the notification template ID:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
   DELETE https://&amp;lt;connection-server&amp;gt;/vmrest/notificationtemplates/&amp;lt;notificationtemplateid&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;
== Listing Template Subscribership for the HTML Notification Templates ==&lt;br /&gt;
&lt;br /&gt;
The following is an example that lists the subscribership for a particular notification template. Using this API the administrator will be able to view list of subscribers who are using a specific notification template.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;   &lt;br /&gt;
GET /vmrest/notificationtemplates/&amp;lt;notificationtemplateid&amp;gt;/subscribers&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;Users total=”2”&amp;gt;&lt;br /&gt;
    &amp;lt;User&amp;gt;&amp;lt;URI&amp;gt;/vmrest/users/24cb82fc-5153-4c3f-abc7-ef442b27b4e9&amp;lt;/URI&amp;gt;&amp;lt;/User&amp;gt;&lt;br /&gt;
    &amp;lt;User&amp;gt;&amp;lt;URI&amp;gt;/vmrest/users/8117171c-a633-4ecf-b847-d6d15db41818&amp;lt;/URI&amp;gt;&amp;lt;/User&amp;gt;&lt;br /&gt;
  &amp;lt;/Users&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;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>