<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Disable Activity Stories on REST Requests</title><link>https://community.telligent.com/community/11/w/developer-training/67212/disable-activity-stories-on-rest-requests</link><description /><dc:language>en-US</dc:language><generator>14.0.0.586 14</generator><item><title>Disable Activity Stories on REST Requests</title><link>https://community.telligent.com/community/11/w/developer-training/67212/disable-activity-stories-on-rest-requests</link><pubDate>Tue, 04 Aug 2020 18:06:26 GMT</pubDate><guid isPermaLink="false">534a8ae0-c840-422d-be03-b879a9e27574</guid><dc:creator>Former Member</dc:creator><comments>https://community.telligent.com/community/11/w/developer-training/67212/disable-activity-stories-on-rest-requests#comments</comments><description>Current Revision posted to Developer Training by Former Member on 08/04/2020 18:06:26&lt;br /&gt;
&lt;p&gt;When creating or updating content the content is detected by the individual&amp;nbsp;activity story types&amp;nbsp;that handle events applicable to their&amp;nbsp;content detection logic and create activity stories.&amp;nbsp; Using the REST header &amp;quot;Rest-Disable-ActivityStories&amp;quot; with the value &amp;quot;True&amp;quot; will&amp;nbsp;prevent the activity story service&amp;nbsp;from creating any type of activity story.&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_Activity_Stories_When_Using_REST" name="Why_Should_I_Disable_Activity_Stories_When_Using_REST"&gt;&lt;/a&gt;Why Should I Disable&amp;nbsp;Activity Stories 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 activity story.&lt;/p&gt;
&lt;h2&gt;&lt;a id="Making_a_REST_Request_with_Activity_Stories_Disabled" name="Making_a_REST_Request_with_Activity_Stories_Disabled"&gt;&lt;/a&gt;Making a REST Request with Activity Stories 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-ActivityStories&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 Activity Stories on REST Requests</title><link>https://community.telligent.com/community/11/w/developer-training/67212/disable-activity-stories-on-rest-requests/revision/3</link><pubDate>Thu, 29 Aug 2019 15:34:49 GMT</pubDate><guid isPermaLink="false">534a8ae0-c840-422d-be03-b879a9e27574</guid><dc:creator>Brian Dooley</dc:creator><comments>https://community.telligent.com/community/11/w/developer-training/67212/disable-activity-stories-on-rest-requests#comments</comments><description>Revision 3 posted to Developer Training by Brian Dooley on 08/29/2019 15:34:49&lt;br /&gt;
&lt;p&gt;When creating or updating content the content is detected by the individual&amp;nbsp;activity story types&amp;nbsp;that handle events applicable to their&amp;nbsp;content detection logic and create activity stories.&amp;nbsp; Using the REST header &amp;quot;Rest-Disable-ActivityStories&amp;quot; with the value &amp;quot;True&amp;quot; will&amp;nbsp;prevent the activity story service&amp;nbsp;from creating any type of activity story.&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_Activity_Stories_When_Using_REST" name="Why_Should_I_Disable_Activity_Stories_When_Using_REST"&gt;&lt;/a&gt;Why Should I Disable&amp;nbsp;Activity Stories 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 activity story.&lt;/p&gt;
&lt;h2&gt;&lt;a id="Making_a_REST_Request_with_Activity_Stories_Disabled" name="Making_a_REST_Request_with_Activity_Stories_Disabled"&gt;&lt;/a&gt;Making a REST Request with Activity Stories 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-ActivityStories&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 Activity Stories on REST Requests</title><link>https://community.telligent.com/community/11/w/developer-training/67212/disable-activity-stories-on-rest-requests/revision/2</link><pubDate>Tue, 27 Aug 2019 13:59:00 GMT</pubDate><guid isPermaLink="false">534a8ae0-c840-422d-be03-b879a9e27574</guid><dc:creator>Brian Dooley</dc:creator><comments>https://community.telligent.com/community/11/w/developer-training/67212/disable-activity-stories-on-rest-requests#comments</comments><description>Revision 2 posted to Developer Training by Brian Dooley on 08/27/2019 13:59:00&lt;br /&gt;
&lt;p&gt;When creating or updating content the content is detected by the individual&amp;nbsp;activity story types&amp;nbsp;that handle events applicable to their&amp;nbsp;content detection logic and create activity stories.&amp;nbsp; Using the REST header &amp;quot;Rest-Disable-ActivityStories&amp;quot; with the value &amp;quot;True&amp;quot; will&amp;nbsp;prevent the activity story service&amp;nbsp;from creating any type of activity story.&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_Activity_Stories_When_Using_REST" name="Why_Should_I_Disable_Activity_Stories_When_Using_REST"&gt;&lt;/a&gt;Why Should I Disable&amp;nbsp;Activity Stories 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 activity story.&lt;/p&gt;
&lt;h2&gt;&lt;a id="Making_a_REST_Request_with_Activity_Stories_Disabled" name="Making_a_REST_Request_with_Activity_Stories_Disabled"&gt;&lt;/a&gt;Making a REST Request with Activity Stories 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-ActivityStories&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 Activity Stories on REST Requests</title><link>https://community.telligent.com/community/11/w/developer-training/67212/disable-activity-stories-on-rest-requests/revision/1</link><pubDate>Mon, 01 Jul 2019 14:35:50 GMT</pubDate><guid isPermaLink="false">534a8ae0-c840-422d-be03-b879a9e27574</guid><dc:creator>Brian Dooley</dc:creator><comments>https://community.telligent.com/community/11/w/developer-training/67212/disable-activity-stories-on-rest-requests#comments</comments><description>Revision 1 posted to Developer Training by Brian Dooley on 07/01/2019 14:35:50&lt;br /&gt;
&lt;p&gt;When creating or updating content the content is detected by the individual&amp;nbsp;activity story types&amp;nbsp;that handle events applicable to their&amp;nbsp;content detection logic and create activity stories.&amp;nbsp; Using the REST header &amp;quot;Rest-Disable-ActivityStories&amp;quot; with the value &amp;quot;True&amp;quot; will&amp;nbsp;prevent the activity story service&amp;nbsp;from creating any type of activity story.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;[TOC]&lt;/p&gt;
&lt;h2&gt;&lt;a id="Why_Should_I_Disable_Activity_Stories_When_Using_REST" name="Why_Should_I_Disable_Activity_Stories_When_Using_REST"&gt;&lt;/a&gt;Why Should I Disable&amp;nbsp;Activity Stories 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 activity story.&lt;/p&gt;
&lt;h2&gt;&lt;a id="Making_a_REST_Request_with_Activity_Stories_Disabled" name="Making_a_REST_Request_with_Activity_Stories_Disabled"&gt;&lt;/a&gt;Making a REST Request with Activity Stories 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-ActivityStories&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>