Docs

Create Organization Document From Template

POST /organizations/{orgId}/documents/from-template

POST/organizations/{orgId}/documents/from-template

Creates a doc in the organization drive from an Organization template (templateId from DynamicDocs_GetDocumentTemplates with driveKind=Organization), in a folder (folderId from Drives_GetOrganizationFileFolders) or at the root, with the template's content and filters. The name is the one sent, else the template's title. An Event template answers 400. Needs Edit on the folder and the organization token for orgId. Returns the doc id, which is also its file id.

Path Parameters

FieldTypeRequiredDescription
orgIduuidRequired

Request Body

FieldTypeRequiredDescription
folderIduuidOptional
templateIduuidOptional
namestringOptional

Response

Type: uuid