dls.documentManage( uri as String, deep as Boolean, [annotation as Sequence] ) as null
This function places a document under management. A document must first be managed before it can be checked out. The document at the specified URI will become version 1 of this managed document.
dls-user
role is required to run
this function, or the privilege:http://marklogic.com/xdmp/privileges/dls-user
// Makes 'baz.xml' a managed document, but not its referenced documents. const dls = require('/MarkLogic/dls'); declareUpdate(); dls.documentManage('/foo/bar/baz.xml', false, 'Baz is now a managed document');