MarkLogic Server 11.0 Product Documentation
alert.configInsert

alert.configInsert(
   config as Object
) as null

Summary

Inserts a config into the database. If this is the first time the config has been inserted, a protected collection will be created for the config's URI. A user must have the alert-admin privilege to call this function.

Parameters
config the config to insert

Example

  const alert = require("/MarkLogic/alert.xqy");

  declareUpdate();
  alert.configInsert(
     alert.makeConfig(
	 "http://acme.com/alert/message-board",
         "Message Board",
         "Alerting config for messages on the message board",
         {"unfiltered":"true"}))
Powered by MarkLogic Server | Terms of Use | Privacy Policy