Skip to content

Workspaces API

Workspace endpoints manage workspaces, members, and workspace avatar.

GET /api/v2/workspaces

Returns list of workspaces available to current account.

Arguments: none.

Payload: none.

Response: WorkspaceViewShort[].

GET /api/v2/workspaces/:fullname

Returns one workspace.

Arguments:

ArgumentLocationDescription
fullnamePathWorkspace fullname.

Payload: none.

Response: WorkspaceView.

PUT /api/v2/workspaces/:fullname

Creates a new workspace or updates existing one.

Arguments:

ArgumentLocationDescription
fullnamePathWorkspace fullname. Must match payload.fullname.

Payload:

FieldRequiredDescription
fullnameYesWorkspace fullname.
createOnlyNoIf true, endpoint returns error if workspace already exists.
resetInviteNoRegenerate invite state.
tagsNoArray of tags.
labelsNoObject with string labels.
meta.titleNoVisible workspace title.
meta.avatarNoAvatar URL.

Response: WorkspaceView.

DELETE /api/v2/workspaces/:fullname

Deletes workspace.

Arguments:

ArgumentLocationDescription
fullnamePathWorkspace fullname.

Payload: none.

Response: OperationResult.

POST /api/v2/workspaces/:fullname/avatar

Uploads workspace avatar.

Arguments:

ArgumentLocationDescription
fullnamePathWorkspace fullname.

Payload:

FieldRequiredDescription
filenameYesOriginal filename.
contentTypeYesImage MIME type.
dataYesBase64 image data.

Response: AvatarUploadResult.

GET /api/v2/workspaces/:workspace/acl

Returns list of workspace members/ACL entries.

Arguments:

ArgumentLocationDescription
workspacePathWorkspace fullname.

Payload: none.

Response: WorkspaceAclEntry[].

POST /api/v2/workspaces/:workspace/acl

Creates invite or ACL entry.

Arguments:

ArgumentLocationDescription
workspacePathWorkspace fullname.

Payload:

FieldRequiredDescription
inviteYesInvite id/token.

Response: WorkspaceAclEntry.

PUT /api/v2/workspaces/:workspace/acl/:entryId

Changes member role.

Arguments:

ArgumentLocationDescription
workspacePathWorkspace fullname.
entryIdPathACL entry id.

Payload:

FieldRequiredDescription
levelYesOne of owner, admin, developer, user.

Response: WorkspaceAclEntry.

DELETE /api/v2/workspaces/:workspace/acl/:entryId

Deletes member/ACL entry.

Arguments:

ArgumentLocationDescription
workspacePathWorkspace fullname.
entryIdPathACL entry id.

Payload: none.

Response: OperationResult.