Workspaces
Last updated
Last updated
Workspaces are the top-level organizational structure for folders and files. Workspaces are also a root_folder
whose contents can be examined via the Folders endpoint.
POST
https://ws-api.onehub.com/workspaces
Creates a new Workspace owned by the user.
Name | Type | Description |
---|---|---|
GET
https://ws-api.onehub.com/workspaces/:id
Retrieve the Workspace specified via :id
.
PUT
https://ws-api.onehub.com/workspaces/:id
Updates the Workspace specified via :id
.
DELETE
https://ws-api.onehub.com/workspaces/:id
Delete the Workspace specified via :id
.
GET
https://ws-api.onehub.com/workspaces
List all Workspaces that the user has been invited to.
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
workspace[name]
string
The name of the Workspace.
workspace[background_color]
string
A CSS hex color value that determines the background color for the Workspace.
workspace[data_room]
boolean
Activates Data Room mode for the Workspace. Defaults to false
. Availability of this feature is plan dependent.
workspace[default_view]
string
Determines whether first time visitors should see folders and files displayed as horizontal rows
or as a grid of large thumbnails
. Defaults to rows
.
:id
integer
The unique identifier of the Workspace you would like to retrieve.
:id
integer
The unique identifier of the Workspace you would like to update.
workspace[name]
string
The name of the Workspace.
workspace[background_color]
string
A CSS hex color value that determines the background color for the Workspace.
workspace[data_room]
boolean
Activates Data Room mode for the Workspace. Defaults to false
. Availability of this feature is plan dependent.
workspace[default_view]
string
Determines whether first time visitors should see folders and files displayed as horizontal rows
or as a grid of large thumbnails
. Defaults to rows
.
:id
integer
The unique identifier of the Workspace you would like to delete.