Adds a new document and also creates an initial version of its content.
Required Permissions
Any authenticated user.Headers
Authorization
Bearer authentication of the form Bearer <token>, where token is your auth token.
Request
This endpoint expects an object.
name
The name of the document.
documentSpaceId
The id of the document space.
parentId
The id of the document's parent document.
projectId
The id of the project this document references.
taskId
The id of the task this document references.
emoji
The emoji of the document.
isPrivate
Whether the document is private.
order
The order of the document in either the list of private docs,
the referenced document space or in the referenced project.
workspaceAccessLevel
Determines the level of access to this document granted to all workspace users.
Can be either null (inherited), none
, read
, or manage
.
Allowed values:
isHiddenForConnectUsers
Whether the document is hidden for connect users.
content
The content of the document.
Response
OK
id
createdOn
createdBy
updatedOn
updatedBy
name
The name of the document.
currentDocumentVersionId
The id of the current document version.
documentSpaceId
The id of the document space.
documentSpace
parentId
The id of the document's parent document.
projectId
The id of the project this document references.
project
taskId
The id of the task this document references.
emoji
The emoji of the document.
isPrivate
Whether the document is private.
order
The order of the document in either the list of private docs,
the referenced document space or in the referenced project.
isExternal
Whether the document belongs to an external project.
isHiddenForConnectUsers
Whether the document is hidden for connect users.
contributors
The contributors of this document.
teams
The teams this document is connected to.
workspaceAccessLevel
Determines the level of access to this document granted to all workspace users.
Can be either not set (no access), read
, or manage
.
inheritedWorkspaceAccessFromDocumentId
The id of the document the workspace access level permission has been inherited from.
inheritedWorkspaceAccessFromDocument
movedToTrashOn
The date the document has been moved to the trash
movedToTrashBy
The id of the user that moved the document to the trash.
rootDocumentCreatedBy
The user id of the creator of the root document of this document's document tree.