Creates a new document or layout. Optionally base it on an existing layout.
Document name
Type of document to create: 'document' (default) or 'layout'
UUID of an existing layout to base this document on
UUID of the playbook this document was created for
UUID of the playbook run this document was created during
Optional folder UUID to file the new document into. The caller must be able to view the folder; an inaccessible or missing folder is rejected.