POST

Creates a notification rule.

URL:

https://<ServerIP>:<Port>/ccp-webapp/ccp/notificationrule

HTTPS method:

POST

Example XML request payload (email):

Code Snippet
Copy
<NotificationRule>
 <name>test</name>
 <description>
  this is the description
 </description>
 <campaignUrl>
  https://[ServerIP]:[Port]/ccp-webapp/ccp/
  campaign/MyTestCampaign
 </campaignUrl>
 <tags>
  <tag>test</tag>
  <tag>cisco</tag>
 </tags>
 <targets>
  <target>test@cisco.com</target>
  <target>cisco@cisco.com</target>
 </targets>
 <type>email</type>
 <subject>Notification Rules</subject>
 <body>Click on this link.</body>
</NotificationRule>

Example XML request payload (https):

Code Snippet
Copy
<NotificationRule>
 <name>test</name>
 <description>
  this is the description
 </description>
 <campaignUrl>
   https://[ServerIP]:[Port]/ccp-webapp/ccp/
   campaign/MyTestCampaign
 </campaignUrl>
 <tags>
  <tag>test</tag>
  <tag>cisco</tag>
 </tags>
 <type>http</type>
 <httpUrl>
   https://someserver/notification/handler
 </httpUrl>
 <alternateHttpUrl>https://someserver1/notification/handler</alternateHttpUrl>
 <httpUsername>username</httpUsername>
 <httpPassword>password</httpPassword>
 <sslVerifyCertificates>
   true
 </sslVerifyCertificates>
</NotificationRule>
                      

Example XML request payload (CCE):

Code Snippet
Copy
<NotificationRule>
  <name>test</name>
  <description>this is the description</description>
  <campaignUrl>https://[ServerIP]:[Port]/ccp-webapp/ccp/campaign/MyTestCampaign
  </campaignUrl>
  <tags>
     <tag>test</tag>
     <tag>cisco</tag>
  </tags>
  <type>cce</type>
  <scriptSelector>allSalesAndService</scriptSelector>
  <mediaRoutingDomains>
     <mediaRoutingDomain>
        <mediaRoutingDomainId>1</mediaRoutingDomainId>
     </mediaRoutingDomain>
  </mediaRoutingDomains>
</NotificationRule>

Parameters:

See Notification API Parameters.

HTTPS response headers:

A 201 Created https header is returned on success, along with the REST URL to the new notification rule.