POST (Header:PUT) api.ashx/v2/notificationpreference.{json|xml}
UPDATE a notification preference.
Scopes
Notifications › Modify Preferences notifications.preferences.modify
Request Parameters
Name | Type | Location | Description | Required | Default | Options |
---|---|---|---|---|---|---|
DistributionTypeId | Guid? | Id of the distribution type, if not provided, preference for the notification as a whole is set | Optional | |||
IsEnabled | bool | Enable or disable the notification type for the distribution type | Required | |||
NotificationTypeId | Guid | Id of the notification type | Required |
Example Requests
Widget Javascript
jQuery.telligent.evolution.put({ url: jQuery.telligent.evolution.site.getBaseUrl() + 'api.ashx/v2/notificationpreference.json', data: { 'IsEnabled': 'True', 'NotificationTypeId': '49fec544-6df7-4a82-872b-f8be586d5e9e' } }).then(function(response) { // use response });
Example Responses
JSON
{ "Info": [ "string", "string" ], "Warnings": [ "string", "string" ], "Errors": [ "string", "string" ] }
XML
<?xml version="1.0" encoding="utf-16"?> <Response> <Info> <Message>string</Message> <Message>string</Message> </Info> <Warnings> <Message>string</Message> <Message>string</Message> </Warnings> <Errors> <Message>string</Message> <Message>string</Message> </Errors> </Response>