Docs
Create Organization Document From Template
POST /organizations/{orgId}/documents/from-template
POST
/organizations/{orgId}/documents/from-templateCreates 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
| Field | Type | Required | Description |
|---|---|---|---|
| orgId | uuid | Required |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| folderId | uuid | Optional | |
| templateId | uuid | Optional | |
| name | string | Optional |
Response
Type: uuid