Adds a new document and also creates an initial version of its content.

Required Permissions
Any authenticated user.

Headers

AuthorizationstringRequired

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

This endpoint expects an object.
namestring or nullOptional>=0 characters<=1000 characters
The name of the document.
documentSpaceIdUUID or nullOptional
The id of the document space.
parentIdUUID or nullOptional
The id of the document's parent document.
projectIdUUID or nullOptional
The id of the project this document references.
taskIdUUID or nullOptional
The id of the task this document references.
emojistring or nullOptional>=0 characters<=25 characters
The emoji of the document.
isPrivatebooleanOptional
Whether the document is private.
orderdouble or nullOptional
The order of the document in either the list of private docs, the referenced document space or in the referenced project.
workspaceAccessLevelenum or nullOptional

Determines the level of access to this document granted to all workspace users. Can be either null (inherited), none, read, or manage.

Allowed values:
isHiddenForConnectUsersboolean or nullOptional
Whether the document is hidden for connect users.
contentBase64 string or nullOptional
The content of the document.

Response

OK
idUUIDOptional
createdOndatetimeOptional
createdByUUIDOptional
updatedOndatetimeOptional
updatedByUUIDOptional
namestring or nullOptional
The name of the document.
currentDocumentVersionIdUUID or nullOptional
The id of the current document version.
documentSpaceIdUUID or nullOptional
The id of the document space.
documentSpaceobjectOptional
parentIdUUID or nullOptional
The id of the document's parent document.
projectIdUUID or nullOptional
The id of the project this document references.
projectobjectOptional
taskIdUUID or nullOptional
The id of the task this document references.
emojistring or nullOptional
The emoji of the document.
isPrivatebooleanOptional
Whether the document is private.
orderdouble or nullOptional
The order of the document in either the list of private docs, the referenced document space or in the referenced project.
isExternalbooleanOptional
Whether the document belongs to an external project.
isHiddenForConnectUsersbooleanOptional
Whether the document is hidden for connect users.
contributorslist of objectsOptional
The contributors of this document.
teamslist of objectsOptional
The teams this document is connected to.
workspaceAccessLevelstring or nullOptional

Determines the level of access to this document granted to all workspace users. Can be either not set (no access), read, or manage.

inheritedWorkspaceAccessFromDocumentIdUUID or nullOptional
The id of the document the workspace access level permission has been inherited from.
inheritedWorkspaceAccessFromDocumentobjectOptional
movedToTrashOndatetime or nullOptional
The date the document has been moved to the trash
movedToTrashByUUID or nullOptional
The id of the user that moved the document to the trash.
rootDocumentCreatedByUUIDOptional
The user id of the creator of the root document of this document's document tree.