<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Disable Notifications on REST Requests</title><link>https://community.telligent.com/community/11/w/developer-training/67215/disable-notifications-on-rest-requests</link><description /><dc:language>en-US</dc:language><generator>14.0.0.586 14</generator><item><title>Disable Notifications on REST Requests</title><link>https://community.telligent.com/community/11/w/developer-training/67215/disable-notifications-on-rest-requests</link><pubDate>Tue, 04 Aug 2020 18:13:33 GMT</pubDate><guid isPermaLink="false">46267be4-9712-4ac1-b89d-93f76bc87ee9</guid><dc:creator>Former Member</dc:creator><comments>https://community.telligent.com/community/11/w/developer-training/67215/disable-notifications-on-rest-requests#comments</comments><description>Current Revision posted to Developer Training by Former Member on 08/04/2020 18:13:33&lt;br /&gt;
&lt;p&gt;When creating or updating content the content is detected by the individual&amp;nbsp;notification types&amp;nbsp;that handle events applicable to their content detection logic and create notifications.&amp;nbsp; Using the REST header &amp;quot;Rest-Disable-Notifications&amp;quot; with the value &amp;quot;True&amp;quot; will&amp;nbsp;prevent the notification service&amp;nbsp;from creating any type of notification.&amp;nbsp; It will also prevent the &lt;a href="/community/11/w/api-documentation/64068/sendemail-in-process-api-service"&gt;SendEmail&lt;/a&gt;&amp;nbsp;API from sending any emails related to the content being created or updated.&amp;nbsp; &lt;span&gt;If using API key authentication via REST, the user making the REST request must have the &amp;quot;Manage Site&amp;quot; permission.&amp;nbsp; If using OAuth authentication, the user making the REST request must have the OAuth Permission &amp;quot;Manage Settings&amp;quot;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;[TOC]&lt;/p&gt;
&lt;h2&gt;&lt;a id="Why_Should_I_Disable_Notifications_When_Using_REST" name="Why_Should_I_Disable_Notifications_When_Using_REST"&gt;&lt;/a&gt;Why Should I Disable&amp;nbsp;Notifications When Using REST&lt;/h2&gt;
&lt;p&gt;If you&amp;#39;re migrating existing content from another system, you may not wish for that content to generate any type of notification.&lt;/p&gt;
&lt;h2&gt;&lt;a id="Making_a_REST_Request_with_Notifications_Disabled" name="Making_a_REST_Request_with_Notifications_Disabled"&gt;&lt;/a&gt;Making a REST Request with Notifications Disabled&lt;/h2&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;var request = WebRequest.Create(&amp;quot;https://myverintcommunitysite.com/api.ashx/v2/info.json&amp;quot;) as HttpWebRequest;
request.Method = &amp;quot;Get&amp;quot;;

// replace the &amp;quot;admin&amp;quot; and &amp;quot;Admin&amp;#39;s API key&amp;quot; with your valid user and apikey!
var adminKey = String.Format(&amp;quot;{0}:{1}&amp;quot;, &amp;quot;Admin&amp;#39;s API key&amp;quot;, &amp;quot;admin&amp;quot;);
var adminKeyBase64 = Convert.ToBase64String(Encoding.UTF8.GetBytes(adminKey));

request.Headers.Add(&amp;quot;Rest-User-Token&amp;quot;, adminKeyBase64);
request.Headers.Add(&amp;quot;Rest-Disable-Notifications&amp;quot;, &amp;quot;True&amp;quot;);

var response = request.GetResponse() as HttpWebResponse;&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item><item><title>Disable Notifications on REST Requests</title><link>https://community.telligent.com/community/11/w/developer-training/67215/disable-notifications-on-rest-requests/revision/3</link><pubDate>Thu, 29 Aug 2019 15:35:03 GMT</pubDate><guid isPermaLink="false">46267be4-9712-4ac1-b89d-93f76bc87ee9</guid><dc:creator>Brian Dooley</dc:creator><comments>https://community.telligent.com/community/11/w/developer-training/67215/disable-notifications-on-rest-requests#comments</comments><description>Revision 3 posted to Developer Training by Brian Dooley on 08/29/2019 15:35:03&lt;br /&gt;
&lt;p&gt;When creating or updating content the content is detected by the individual&amp;nbsp;notification types&amp;nbsp;that handle events applicable to their content detection logic and create notifications.&amp;nbsp; Using the REST header &amp;quot;Rest-Disable-Notifications&amp;quot; with the value &amp;quot;True&amp;quot; will&amp;nbsp;prevent the notification service&amp;nbsp;from creating any type of notification.&amp;nbsp; It will also prevent the &lt;a href="/community/11/w/api-documentation/64068/sendemail-in-process-api-service"&gt;SendEmail&lt;/a&gt;&amp;nbsp;API from sending any emails related to the content being created or updated.&amp;nbsp; &lt;span&gt;If using API key authentication via REST, the user making the REST request must have the &amp;quot;Manage Site&amp;quot; permission.&amp;nbsp; If using OAuth authentication, the user making the REST request must have the OAuth Permission &amp;quot;Manage Settings&amp;quot;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;[TOC]&lt;/p&gt;
&lt;h2&gt;&lt;a id="Why_Should_I_Disable_Notifications_When_Using_REST" name="Why_Should_I_Disable_Notifications_When_Using_REST"&gt;&lt;/a&gt;Why Should I Disable&amp;nbsp;Notifications When Using REST&lt;/h2&gt;
&lt;p&gt;If you&amp;#39;re migrating existing content from another system, you may not wish for that content to generate any type of notification.&lt;/p&gt;
&lt;h2&gt;&lt;a id="Making_a_REST_Request_with_Notifications_Disabled" name="Making_a_REST_Request_with_Notifications_Disabled"&gt;&lt;/a&gt;Making a REST Request with Notifications Disabled&lt;/h2&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;var request = WebRequest.Create(&amp;quot;https://mytelligentcommunitysite.com/api.ashx/v2/info.json&amp;quot;) as HttpWebRequest;
request.Method = &amp;quot;Get&amp;quot;;

// replace the &amp;quot;admin&amp;quot; and &amp;quot;Admin&amp;#39;s API key&amp;quot; with your valid user and apikey!
var adminKey = String.Format(&amp;quot;{0}:{1}&amp;quot;, &amp;quot;Admin&amp;#39;s API key&amp;quot;, &amp;quot;admin&amp;quot;);
var adminKeyBase64 = Convert.ToBase64String(Encoding.UTF8.GetBytes(adminKey));

request.Headers.Add(&amp;quot;Rest-User-Token&amp;quot;, adminKeyBase64);
request.Headers.Add(&amp;quot;Rest-Disable-Notifications&amp;quot;, &amp;quot;True&amp;quot;);

var response = request.GetResponse() as HttpWebResponse;&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item><item><title>Disable Notifications on REST Requests</title><link>https://community.telligent.com/community/11/w/developer-training/67215/disable-notifications-on-rest-requests/revision/2</link><pubDate>Tue, 27 Aug 2019 13:59:13 GMT</pubDate><guid isPermaLink="false">46267be4-9712-4ac1-b89d-93f76bc87ee9</guid><dc:creator>Brian Dooley</dc:creator><comments>https://community.telligent.com/community/11/w/developer-training/67215/disable-notifications-on-rest-requests#comments</comments><description>Revision 2 posted to Developer Training by Brian Dooley on 08/27/2019 13:59:13&lt;br /&gt;
&lt;p&gt;When creating or updating content the content is detected by the individual&amp;nbsp;notification types&amp;nbsp;that handle events applicable to their content detection logic and create notifications.&amp;nbsp; Using the REST header &amp;quot;Rest-Disable-Notifications&amp;quot; with the value &amp;quot;True&amp;quot; will&amp;nbsp;prevent the notification service&amp;nbsp;from creating any type of notification.&amp;nbsp; It will also prevent the &lt;a href="/community/11/w/api-documentation/64068/sendemail-in-process-api-service"&gt;SendEmail&lt;/a&gt;&amp;nbsp;API from sending any emails related to the content being created or updated.&amp;nbsp;&amp;nbsp;&lt;span&gt;The user making the REST request must have the &amp;quot;Manage Site&amp;quot; permission.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;[TOC]&lt;/p&gt;
&lt;h2&gt;&lt;a id="Why_Should_I_Disable_Notifications_When_Using_REST" name="Why_Should_I_Disable_Notifications_When_Using_REST"&gt;&lt;/a&gt;Why Should I Disable&amp;nbsp;Notifications When Using REST&lt;/h2&gt;
&lt;p&gt;If you&amp;#39;re migrating existing content from another system, you may not wish for that content to generate any type of notification.&lt;/p&gt;
&lt;h2&gt;&lt;a id="Making_a_REST_Request_with_Notifications_Disabled" name="Making_a_REST_Request_with_Notifications_Disabled"&gt;&lt;/a&gt;Making a REST Request with Notifications Disabled&lt;/h2&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;var request = WebRequest.Create(&amp;quot;https://mytelligentcommunitysite.com/api.ashx/v2/info.json&amp;quot;) as HttpWebRequest;
request.Method = &amp;quot;Get&amp;quot;;

// replace the &amp;quot;admin&amp;quot; and &amp;quot;Admin&amp;#39;s API key&amp;quot; with your valid user and apikey!
var adminKey = String.Format(&amp;quot;{0}:{1}&amp;quot;, &amp;quot;Admin&amp;#39;s API key&amp;quot;, &amp;quot;admin&amp;quot;);
var adminKeyBase64 = Convert.ToBase64String(Encoding.UTF8.GetBytes(adminKey));

request.Headers.Add(&amp;quot;Rest-User-Token&amp;quot;, adminKeyBase64);
request.Headers.Add(&amp;quot;Rest-Disable-Notifications&amp;quot;, &amp;quot;True&amp;quot;);

var response = request.GetResponse() as HttpWebResponse;&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item><item><title>Disable Notifications on REST Requests</title><link>https://community.telligent.com/community/11/w/developer-training/67215/disable-notifications-on-rest-requests/revision/1</link><pubDate>Mon, 01 Jul 2019 14:38:47 GMT</pubDate><guid isPermaLink="false">46267be4-9712-4ac1-b89d-93f76bc87ee9</guid><dc:creator>Brian Dooley</dc:creator><comments>https://community.telligent.com/community/11/w/developer-training/67215/disable-notifications-on-rest-requests#comments</comments><description>Revision 1 posted to Developer Training by Brian Dooley on 07/01/2019 14:38:47&lt;br /&gt;
&lt;p&gt;When creating or updating content the content is detected by the individual&amp;nbsp;notification types&amp;nbsp;that handle events applicable to their content detection logic and create notifications.&amp;nbsp; Using the REST header &amp;quot;Rest-Disable-Notifications&amp;quot; with the value &amp;quot;True&amp;quot; will&amp;nbsp;prevent the notification service&amp;nbsp;from creating any type of notification.&amp;nbsp; It will also prevent the &lt;a href="/community/11/w/api-documentation/64068/sendemail-in-process-api-service"&gt;SendEmail&lt;/a&gt;&amp;nbsp;API from sending any emails related to the content being created or updated.&lt;/p&gt;
&lt;p&gt;[TOC]&lt;/p&gt;
&lt;h2&gt;&lt;a id="Why_Should_I_Disable_Notifications_When_Using_REST" name="Why_Should_I_Disable_Notifications_When_Using_REST"&gt;&lt;/a&gt;Why Should I Disable&amp;nbsp;Notifications When Using REST&lt;/h2&gt;
&lt;p&gt;If you&amp;#39;re migrating existing content from another system, you may not wish for that content to generate any type of notification.&lt;/p&gt;
&lt;h2&gt;&lt;a id="Making_a_REST_Request_with_Notifications_Disabled" name="Making_a_REST_Request_with_Notifications_Disabled"&gt;&lt;/a&gt;Making a REST Request with Notifications Disabled&lt;/h2&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;var request = WebRequest.Create(&amp;quot;https://mytelligentcommunitysite.com/api.ashx/v2/info.json&amp;quot;) as HttpWebRequest;
request.Method = &amp;quot;Get&amp;quot;;

// replace the &amp;quot;admin&amp;quot; and &amp;quot;Admin&amp;#39;s API key&amp;quot; with your valid user and apikey!
var adminKey = String.Format(&amp;quot;{0}:{1}&amp;quot;, &amp;quot;Admin&amp;#39;s API key&amp;quot;, &amp;quot;admin&amp;quot;);
var adminKeyBase64 = Convert.ToBase64String(Encoding.UTF8.GetBytes(adminKey));

request.Headers.Add(&amp;quot;Rest-User-Token&amp;quot;, adminKeyBase64);
request.Headers.Add(&amp;quot;Rest-Disable-Notifications&amp;quot;, &amp;quot;True&amp;quot;);

var response = request.GetResponse() as HttpWebResponse;&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item></channel></rss>