Docs

Create Document

POST /events/{eventId}/documents

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

FieldTypeRequiredDescription
eventIduuidRequired

Request Body

FieldTypeRequiredDescription
folderIduuidOptional
namestringOptional
descriptionstringOptional
contentstringOptional

Response

FieldTypeDescription
iduuid
versioninteger
blocksSavedContentBlock[]| null
tokensSavedContentToken[]| null

SavedContentBlock

FieldTypeDescription
blockIdstring| null
stampobject| null
stampLabelstring| null
authoredBySavedContentBlockAuthoredByInfo| null
errorSavedContentBlockErrorInfo| null

SavedContentToken

FieldTypeDescription
attributeIduuid| null
attributeNamestring| null
referencestring| null
segmentstring| null
errorstring| null

SavedContentBlockAuthoredByInfo

FieldTypeDescription
userIduuid
namestring| null

SavedContentBlockErrorInfo

FieldTypeDescription
pathstring| null
usagestring| null
labelstring| null
reasonstring| null