Article Disable Notifications on REST Requests

When creating or updating content the content is detected by the individual notification types that handle events applicable to their content detection logic and create notifications.  Using the REST header "Rest-Disable-Notifications" with the value "True" will prevent the notification service from creating any type of notification.  It will also prevent the SendEmail API from sending any emails related to the content being created or updated.  If using API key authentication via REST, the user making the REST request must have the "Manage Site" permission.  If using OAuth authentication, the user making the REST request must have the OAuth Permission "Manage Settings".

Why Should I Disable Notifications When Using REST

If you're migrating existing content from another system, you may not wish for that content to generate any type of notification.

Making a REST Request with Notifications Disabled

var request = WebRequest.Create("https://myverintcommunitysite.com/api.ashx/v2/info.json") as HttpWebRequest;
request.Method = "Get";

// replace the "admin" and "Admin's API key" with your valid user and apikey!
var adminKey = String.Format("{0}:{1}", "Admin's API key", "admin");
var adminKeyBase64 = Convert.ToBase64String(Encoding.UTF8.GetBytes(adminKey));

request.Headers.Add("Rest-User-Token", adminKeyBase64);
request.Headers.Add("Rest-Disable-Notifications", "True");

var response = request.GetResponse() as HttpWebResponse;