<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>core_v2_notificationUserPreference Script API</title><link>https://community.telligent.com/community/11/w/api-documentation/65764/core_5F00_v2_5F00_notificationuserpreference-script-api</link><description /><dc:language>en-US</dc:language><generator>14.0.0.586 14</generator><item><title>core_v2_notificationUserPreference Script API</title><link>https://community.telligent.com/community/11/w/api-documentation/65764/core_5F00_v2_5F00_notificationuserpreference-script-api</link><pubDate>Wed, 20 Nov 2019 14:53:44 GMT</pubDate><guid isPermaLink="false">79fa4101-9631-4380-84e9-9431a9d8d2a5</guid><dc:creator>Ben Tiedt</dc:creator><comments>https://community.telligent.com/community/11/w/api-documentation/65764/core_5F00_v2_5F00_notificationuserpreference-script-api#comments</comments><description>Current Revision posted to API Documentation by Ben Tiedt on 11/20/2019 14:53:44&lt;br /&gt;
&lt;hr class="generated-documentation-start" style="border-width:0;" /&gt;&lt;div class="documentation"&gt;&lt;p&gt;Enables scripted content fragments to use Notification User Preferences&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="#List"&gt;List&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="#Update"&gt;Update&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class="documentation-members methods"&gt;&lt;h3&gt;&lt;a id="Methods" name="Methods"&gt;&lt;/a&gt;Methods&lt;/h3&gt;&lt;a name="List"&gt;&lt;/a&gt;&lt;h2&gt;&lt;a id="List" name="List"&gt;&lt;/a&gt;List&lt;/h2&gt;&lt;p&gt;Lists notification user preferences&lt;/p&gt;&lt;h4&gt;&lt;a id="Velocity" name="Velocity"&gt;&lt;/a&gt;&lt;em&gt;Velocity&lt;/em&gt;&lt;/h4&gt;&lt;pre class="brush: velocity"&gt;#set($notificationUserPreferencesResponse = $core_v2_notificationUserPreference.List())&lt;/pre&gt;&lt;h4&gt;&lt;a id="JavaScript" name="JavaScript"&gt;&lt;/a&gt;&lt;em&gt;JavaScript&lt;/em&gt;&lt;/h4&gt;&lt;pre class="brush: javascript"&gt;var notificationUserPreferencesResponse = core_v2_notificationUserPreference.List();&lt;/pre&gt;&lt;h4&gt;&lt;a id="Returns" name="Returns"&gt;&lt;/a&gt;&lt;em&gt;Returns&lt;/em&gt;&lt;/h4&gt;&lt;p&gt;&lt;div&gt;&lt;code&gt;[[NotificationUserPreferences Script API Type|NotificationUserPreferences]]&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;&lt;a name="Update"&gt;&lt;/a&gt;&lt;h2&gt;&lt;a id="Update" name="Update"&gt;&lt;/a&gt;Update&lt;/h2&gt;&lt;p&gt;Updates a notification user preference&lt;/p&gt;&lt;h4&gt;&lt;a id="Velocity" name="Velocity"&gt;&lt;/a&gt;&lt;em&gt;Velocity&lt;/em&gt;&lt;/h4&gt;&lt;pre class="brush: velocity"&gt;#set($additionalInfoResponse = $core_v2_notificationUserPreference.Update($notificationTypeId, $isEnabled, &amp;quot;%{ DistributionTypeId = $distributionTypeIdArg }&amp;quot;))&lt;/pre&gt;&lt;h4&gt;&lt;a id="JavaScript" name="JavaScript"&gt;&lt;/a&gt;&lt;em&gt;JavaScript&lt;/em&gt;&lt;/h4&gt;&lt;pre class="brush: javascript"&gt;var additionalInfoResponse = core_v2_notificationUserPreference.Update(notificationTypeId, isEnabled, { DistributionTypeId: distributionTypeIdArg });&lt;/pre&gt;&lt;h4&gt;&lt;a id="Parameters" name="Parameters"&gt;&lt;/a&gt;&lt;em&gt;Parameters&lt;/em&gt;&lt;/h4&gt;&lt;table cellspacing="0" cellpadding="2" width="99%" class="WikiTable"&gt;&lt;thead&gt;&lt;tr class="WikiTableBgBlue"&gt;&lt;th&gt;Name&lt;/th&gt;&lt;th&gt;Type&lt;/th&gt;&lt;th&gt;Description&lt;/th&gt;&lt;th&gt;Required&lt;/th&gt;&lt;th&gt;Default&lt;/th&gt;&lt;th&gt;Options&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td rowspan="1"&gt;notificationTypeId&lt;/td&gt;&lt;td rowspan="1"&gt;&lt;code&gt;Guid&lt;/code&gt;&lt;/td&gt;&lt;td rowspan="1"&gt;Type of notification type to enable or disable&lt;/td&gt;&lt;td rowspan="1"&gt;Required&lt;/td&gt;&lt;td rowspan="1"&gt;&lt;/td&gt;&lt;td rowspan="1"&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td rowspan="1"&gt;isEnabled&lt;/td&gt;&lt;td rowspan="1"&gt;&lt;code&gt;Boolean&lt;/code&gt;&lt;/td&gt;&lt;td rowspan="1"&gt;Whether to enable or disable&lt;/td&gt;&lt;td rowspan="1"&gt;Required&lt;/td&gt;&lt;td rowspan="1"&gt;&lt;/td&gt;&lt;td rowspan="1"&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td rowspan="1"&gt;DistributionTypeId&lt;/td&gt;&lt;td rowspan="1"&gt;&lt;code&gt;Guid&lt;/code&gt;&lt;/td&gt;&lt;td rowspan="1"&gt;When specified, only enables or disables a specific distribution type for a specific notification type for a user. When not specified. When not specified, the entire notification is enabled or disabled for a user.&lt;/td&gt;&lt;td rowspan="1"&gt;Optional&lt;/td&gt;&lt;td rowspan="1"&gt;&lt;/td&gt;&lt;td rowspan="1"&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;h4&gt;&lt;a id="Returns" name="Returns"&gt;&lt;/a&gt;&lt;em&gt;Returns&lt;/em&gt;&lt;/h4&gt;&lt;p&gt;&lt;div&gt;&lt;code&gt;[[AdditionalInfo Script API Type|AdditionalInfo]]&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;hr class="generated-documentation-end" style="border-width:0;" /&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item></channel></rss>