POST/events/{eventId}/documents
Creates a blank doc as a file in the event drive's folder (root when folderId is omitted), with an optional name
("Untitled document" when blank), description and initial TipTap JSON content, and returns its id (also its file id)
and version. Each data table in the content is checked and stamped under your access (blocks); a table using a
column you can't see rejects the create with 400 naming it, and an attribute token you can't see, or an added token
path through a field or record you can't see, is saved as "[hidden field]" (tokens). Needs Edit on the folder or
the drive root; 404 for a folder outside the event's drive. Folder ids come from Drives_GetFileFolders. Rename,
move, share and delete the doc through the drive's file routes.
Path Parameters
| Field | Type | Required | Description |
|---|
| eventId | 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 | |