Docs

Create Organization Document

POST /organizations/{orgId}/documents

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

FieldTypeRequiredDescription
orgIduuidRequired

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