private void MoveDocument(int docId, int path) { var document = DocumentsManager.GetDocumentByID(docId, true); DocumentsManager.MoveDocumentToNextStep(new MoveDocumentToNextStepParams(document, path) { ForceCheckout = true, SkipPermissionsCheck = true });; }