Creates a document space and assigns the requested workspace access level. The space is inserted into the workspace order. The Basic, Standard and Connect plans allow one active space, including Home.
Authentication
AuthorizationBearerSend your token in the Authorization: Bearer <token> header. See Authentication for API keys and OAuth.
Request body Required
The model used to create the document space.
application/json
namestring or nullOptional0 maxLength: 1000 The name of the document space.
emojistring or nullOptional0 maxLength: 25 The emoji of the document space.
colorstring or nullOptional0 maxLength: 14 The 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 nullOptionalAllowed: "none" "read" "manage"
0 maxLength: 25 Determines the level of access to this document space granted to all workspace users.
Can be either none, read, or manage.
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 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.
400 Bad Request
application/json
codestringRequired1 The error code.
descriptionstringRequired1 The description of the error.
linkstringRequired1 The link to the API documentation page.
detailsarray of string or nullOptionalA list of details describing the error.
validationErrorsarray of object or nullOptionalIf a validation error occurred, this contains the validation errors for each property.
Show 2 properties
propertystring or nullOptionalThe name of the property that failed validation.
messagestring or nullOptionalThe reason why this property failed validation.
traceIdstring or nullOptionalThe request trace id for tracking the request.
401 Unauthorized
application/json
codestringRequired1 The error code.
descriptionstringRequired1 The description of the error.
linkstringRequired1 The link to the API documentation page.
detailsarray of string or nullOptionalA list of details describing the error.
validationErrorsarray of object or nullOptionalIf a validation error occurred, this contains the validation errors for each property.
Show 2 properties
propertystring or nullOptionalThe name of the property that failed validation.
messagestring or nullOptionalThe reason why this property failed validation.
traceIdstring or nullOptionalThe request trace id for tracking the request.