Loading TOC...

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

  var 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"}))

Comments

    Powered by MarkLogic Server 7.0-4.1 and rundmc | Terms of Use | Privacy Policy