Loading TOC...

MarkLogic 10 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"}))

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.