alert:config-insert( $config as element(alert:config) ) as empty-sequence()
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 |
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)