Creates a document with optional HTML or Markdown content. Set contentFormat to html or markdown; HTML is the default. Exported Markdown uses hidden metadata to preserve safe editor structures during re-import.
Authentication
AuthorizationBearerSend your token in the Authorization: Bearer <token> header. See Authentication for API keys and OAuth.
Request body
multipart/form-data
namestring or nullOptional0 maxLength: 1000 The name of the document.
documentSpaceIdstring or nullOptionalThe id of the document space.
parentIdstring or nullOptionalThe id of the document's parent document.
projectIdstring or nullOptionalThe id of the project this document references.
taskIdstring or nullOptionalThe id of the task this document references.
emojistring or nullOptional0 maxLength: 25 The emoji of the document.
isPrivatebooleanOptionalWhether the document is private.
ordernumber or nullOptionalThe order of the document in either the list of private docs, the referenced document space or in the referenced project.
workspaceAccessLevelstring or nullOptionalAllowed: "none" "read" "manage"
0 maxLength: 25 Determines the level of access to this document granted to all workspace users.
Can be either null (inherited), none, read, or manage.
isHiddenForConnectUsersboolean or nullOptionalWhether the document is hidden for connect users.
contentstring or nullOptionalThe optional UTF-8 document content. Use Awork.Core.Models.Documents.Documents.DocumentPostForm.ContentFormat to select HTML or Markdown input.
contentFormatstring or nullOptionalAllowed: "html" "markdown"
The input format of Awork.Core.Models.Documents.Documents.DocumentPostForm.Content. Defaults to html. Canonical awork Markdown supports lossless re-import of safe editor content.
Responses
200 OK
application/json
idstringOptionalThe id of the entity.
createdOnstringOptionalThe date this entity was created.
createdBystringOptionalThe id of the user who created this entity.
updatedOnstringOptionalThe date this entity was last modified.
updatedBystringOptionalThe id of the user who last modified this entity.
namestring or nullOptionalThe name of the document.
currentDocumentVersionIdstring or nullOptionalThe id of the current document version.
documentSpaceIdstring or nullOptionalThe id of the document space.
documentSpaceobjectOptionalShow 13 properties
idstringOptionalThe id of the entity.
createdOnstringOptionalThe date this entity was created.
createdBystringOptionalThe id of the user who created this entity.
updatedOnstringOptionalThe date this entity was last modified.
updatedBystringOptionalThe id of the user who last modified this entity.
namestring or nullOptionalThe name of the document space.
isExternalbooleanOptionalWhether this document space is coming from an external workspace (awork Connect).
emojistring or nullOptionalThe emoji of the document space.
colorstring or nullOptionalThe color of the document space for display purposes in the app. Can be null when no color assigned.
ordernumber or nullOptionalThe order of the document space in the list of document spaces.
workspaceAccessLevelstring or nullOptionalDetermines the level of access to this document space granted to all workspace users.
Can be either not set (no access), read, or manage.
contributorsarray of object or nullOptionalThe contributors of this document space.
Show 7 properties
idstringOptionalThe id of the contributor.
userIdstringOptionalThe id of the user this contributor references.
accessLevelstring or nullOptionalDetermines the level of access granted to this contributor with respect to the specific entity.
Can be either set to read or manage.
firstNamestring or nullOptionalThe first name of the user.
lastNamestring or nullOptionalThe last name of the user.
hasImageboolean or nullOptionalWhether the user has an image.
isDeactivatedbooleanOptionalWhether the user is deactivated.
teamsarray of object or nullOptionalThe teams this document space is connected to.
Show 6 properties
idstringOptionalThe id of the entity to team.
teamIdstringOptionalThe id of the team this entity to team references.
accessLevelstring or nullOptionalDetermines the level of access granted to this entity to team with respect to the specific entity.
Can be either set to read or manage.
namestring or nullOptionalThe name of the team.
iconstring or nullOptionalThe icon which is assigned to the team.
colorstring or nullOptionalThe color of the team.
parentIdstring or nullOptionalThe id of the document's parent document.
projectIdstring or nullOptionalThe id of the project this document references.
projectobjectOptionalShow 7 properties
idstringOptionalnamestring or nullOptionalcreatedBystringOptionalteamsarray of object or nullOptionalShow 2 properties
idstringOptionalnamestring or nullOptionalmembersarray of object or nullOptionalShow 3 properties
idstringOptionalprojectRoleIdstringOptionaluserIdstringOptionalisPrivatebooleanOptionalisExternalbooleanOptionaltaskIdstring or nullOptionalThe id of the task this document references.
emojistring or nullOptionalThe emoji of the document.
isPrivatebooleanOptionalWhether the document is private.
ordernumber or nullOptionalThe order of the document in either the list of private docs, the referenced document space or in the referenced project.
isExternalbooleanOptionalWhether the document belongs to an external project.
isHiddenForConnectUsersbooleanOptionalWhether the document is hidden for connect users.
contributorsarray of object or nullOptionalThe contributors of this document.
Show 10 properties
idstringOptionalThe id of the contributor.
userIdstringOptionalThe id of the user this contributor references.
accessLevelstring or nullOptionalDetermines the level of access granted to this contributor with respect to the specific entity.
Can be either set to read or manage.
firstNamestring or nullOptionalThe first name of the user.
lastNamestring or nullOptionalThe last name of the user.
hasImageboolean or nullOptionalWhether the user has an image.
isDeactivatedbooleanOptionalWhether the user is deactivated.
documentIdstringOptionalThe id of the referenced document.
inheritedFromDocumentContributorIdstring or nullOptionalThe id of the contributor the permission has been inherited from.
inheritedDocumentContributorobjectOptionalShow 2 properties
documentIdstringOptionalaccessLevelstring or nullOptionalteamsarray of object or nullOptionalThe teams this document is connected to.
Show 9 properties
idstringOptionalThe id of the entity to team.
teamIdstringOptionalThe id of the team this entity to team references.
accessLevelstring or nullOptionalDetermines the level of access granted to this entity to team with respect to the specific entity.
Can be either set to read or manage.
namestring or nullOptionalThe name of the team.
iconstring or nullOptionalThe icon which is assigned to the team.
colorstring or nullOptionalThe color of the team.
documentIdstringOptionalThe id of the referenced document.
inheritedFromDocumentToTeamIdstring or nullOptionalThe id of the document to team the permission has been inherited from.
inheritedDocumentToTeamobjectOptionalShow 2 properties
documentIdstringOptionalaccessLevelstring or nullOptionalworkspaceAccessLevelstring or nullOptionalDetermines the level of access to this document granted to all workspace users.
Can be either not set (no access), read, or manage.
inheritedWorkspaceAccessFromDocumentIdstring or nullOptionalThe id of the document the workspace access level permission has been inherited from.
inheritedWorkspaceAccessFromDocumentobjectOptionalShow 1 properties
workspaceAccessLevelstring or nullOptionalmovedToTrashOnstring or nullOptionalThe date the document has been moved to the trash
movedToTrashBystring or nullOptionalThe id of the user that moved the document to the trash.
rootDocumentCreatedBystringOptionalThe user id of the creator of the root document of this document's document tree.