alert.configInsert( config as Object ) as null
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 |
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"}))