MarkLogic Server 11.0 Product Documentation
alert:config-insert

alert:config-insert(
   $config as element(alert:config)
) as empty-sequence()

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

  xquery version "1.0-ml";
  import module namespace alert = "http://marklogic.com/xdmp/alert" 
		  at "/MarkLogic/alert.xqy";

  let $config := alert:make-config(...)
  return alert:config-insert($config)
Powered by MarkLogic Server | Terms of Use | Privacy Policy