Loading TOC...


   uri as String,
   deep as Boolean
) as null


This function checks in (unlocks) the document at the specified URI to allow other users to modify the document. This function does not create a new version of the document. You must explicitly use dls.documentUpdate to create new versions of a document.

This function must be called in a separate transaction from the dls.documentCheckout and dls.documentUpdate functions.

uri The URI of the document.
deep If set to true, then any documents directly or indirectly included by the specified document are also checked in.

Required Privileges

The dls-user role is required to run this function, or the privilege:


// Checks in 'baz.xml' and all of its included documents.

const dls = require('/MarkLogic/dls');

dls.documentCheckin('/foo/bar/baz.xml', true);  

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