Workspaces
A Workspace is a lightweight way to organize related resources inside a single Files.com Site.
Customers commonly group resources by project, department, client, or region. Workspaces provide a built-in structure for that grouping, so the UI can operate within a clear “workspace context” and admins can delegate management for a subset of resources without requiring full site-level isolation.
Every Site has an implicit Default workspace (ID 0). Resources that are not explicitly assigned to a named workspace are considered part of the Default workspace.
List Workspaces
SDK Function
Workspace.list()
Return Object
ListIterator<Workspace>
Authorization Requirement
Available to all authenticated keys or sessions.
Additional Arguments
Show Workspace
SDK Function
Workspace.find()
Return Object
Workspace
Authorization Requirement
Requires either a Site-Wide API key or User API key or session from a User with Site Admin permissions.
Function Arguments
| Argument | Description |
|---|---|
| id int64 Required | Workspace ID. |
Create Workspace
SDK Function
Workspace.create()
Return Object
Workspace
Authorization Requirement
Requires either a Site-Wide API key or User API key or session from a User with Site Admin permissions.
Function Arguments
| Argument | Description |
|---|---|
| name string | Workspace name |
Update Workspace
SDK Function
workspace.update();
Return Object
Workspace
Authorization Requirement
Requires either a Site-Wide API key or User API key or session from a User with Site Admin permissions.
Attribute Setters
| Setter | Description |
|---|---|
| setName string | Workspace name |
Delete Workspace
SDK Function
workspace.delete();
Return Object
No return value.
Authorization Requirement
Requires either a Site-Wide API key or User API key or session from a User with Site Admin permissions.
The Workspace Object
Some of the functions above return a Workspace object. The attributes of this object are listed below.
| Attribute | Description |
|---|---|
| id int64 | Workspace ID |
| name string | Workspace name |