POST/organizations/{orgId}/documents
Creates a blank doc in the organization drive, in a folder (folderId from Drives_GetOrganizationFileFolders) or at the
root, with an optional name, description and initial TipTap JSON content; needs Edit on that folder and the
organization token for orgId (from Users_GetOrganizations). Its tables query the organization. An Area filter or an
event token (event fields, event.name, event roles) exists only inside an event, so it is a 400 naming it. Returns
the new doc's id (also its file id), version, saved blocks and tokens, as the event create does.
Path Parameters
| Field | Type | Required | Description |
|---|
| orgId | uuid | Required | |
Request Body
| Field | Type | Required | Description |
|---|
| folderId | uuid | Optional | |
| name | string | Optional | |
| description | string | Optional | |
| content | string | Optional | |
Response
| Field | Type | Description |
|---|
| id | uuid | |
| version | integer | |
| blocks | SavedContentBlock[]| null | |
| tokens | SavedContentToken[]| null | |
SavedContentBlock
| Field | Type | Description |
|---|
| blockId | string| null | |
| stamp | object| null | |
| stampLabel | string| null | |
| authoredBy | SavedContentBlockAuthoredByInfo| null | |
| error | SavedContentBlockErrorInfo| null | |
SavedContentToken
| Field | Type | Description |
|---|
| attributeId | uuid| null | |
| attributeName | string| null | |
| reference | string| null | |
| segment | string| null | |
| error | string| null | |
SavedContentBlockAuthoredByInfo
| Field | Type | Description |
|---|
| userId | uuid | |
| name | string| null | |
SavedContentBlockErrorInfo
| Field | Type | Description |
|---|
| path | string| null | |
| usage | string| null | |
| label | string| null | |
| reason | string| null | |