crm.documentgenerator.document.enablepublicurl(id, status = 1)
The method enables / disables public link to a document.