Workspaces API¶
Create and arrange workspaces and configure their storage. See Workspaces.
Paths are relative to https://<your-atlas-host>/api/v1. For the API key and headers every
request needs, see Authentication.
Endpoint |
What it does |
|---|---|
Create a new workspace |
|
List all workspaces (flat list ordered by tree path) |
|
Get a workspace by ID |
|
Update a workspace |
|
Delete a workspace |
|
Preview the storage/access impact of a proposed move (read-only) |
|
Move a workspace under a new parent |
|
Get all descendants of a workspace |
|
Create storage configuration for a root workspace |
|
List all workspace storage configurations for your organization |
|
Get workspace storage by ID |
|
Update workspace storage configuration |
|
Delete workspace storage |
|
Get storage configuration for a workspace (works for any depth) |
|
Run health check on workspace storage |
Create workspace¶
POST /workspaces/
Create a new workspace.
Request body
Field |
Type |
Required |
Description |
|---|---|---|---|
|
string |
Yes |
|
|
string |
||
|
object |
Key-value tags, usable in row filters as |
|
|
UUID |
Parent workspace; |
Response
Field |
Type |
|---|---|
|
UUID |
|
string |
|
string |
|
string |
|
object |
|
integer |
|
UUID |
|
integer |
|
string |
|
datetime |
|
datetime |
List workspaces¶
GET /workspaces/
List all workspaces (flat list ordered by tree path).
Parameters
Name |
In |
Type |
Description |
|---|---|---|---|
|
query |
boolean |
Return flat list vs roots only |
|
query |
integer |
|
|
query |
integer |
Response A page of results (items, total, limit, offset). Each item:
Field |
Type |
|---|---|
|
UUID |
|
string |
|
string |
|
string |
|
object |
|
integer |
|
UUID |
|
integer |
|
string |
|
datetime |
|
datetime |
Get workspace¶
GET /workspaces/{workspace_id}
Get a workspace by ID.
Parameters
Name |
In |
Type |
Required |
|---|---|---|---|
|
path |
UUID |
Yes |
Response
Field |
Type |
|---|---|
|
UUID |
|
string |
|
string |
|
string |
|
object |
|
integer |
|
UUID |
|
integer |
|
string |
|
datetime |
|
datetime |
Update workspace¶
PATCH /workspaces/{workspace_id}
Update a workspace.
Parameters
Name |
In |
Type |
Required |
|---|---|---|---|
|
path |
UUID |
Yes |
Request body
Field |
Type |
|---|---|
|
string |
|
string |
|
object |
Response
Field |
Type |
|---|---|
|
UUID |
|
string |
|
string |
|
string |
|
object |
|
integer |
|
UUID |
|
integer |
|
string |
|
datetime |
|
datetime |
Delete workspace¶
DELETE /workspaces/{workspace_id}
Delete a workspace.
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
path |
UUID |
Yes |
|
|
query |
boolean |
Delete descendants too |
Response
The raw file content.
Preview move workspace¶
GET /workspaces/{workspace_id}/move/preview
Preview the storage/access impact of a proposed move (read-only).
Parameters
Name |
In |
Type |
Required |
|---|---|---|---|
|
path |
UUID |
Yes |
|
query |
UUID |
|
|
query |
string |
Response
Field |
Type |
|---|---|
|
UUID |
|
UUID |
|
string |
|
boolean |
|
list of string |
|
boolean |
|
boolean |
|
object |
|
object |
Move workspace¶
POST /workspaces/{workspace_id}/move
Move a workspace under a new parent.
Parameters
Name |
In |
Type |
Required |
|---|---|---|---|
|
path |
UUID |
Yes |
Request body
Field |
Type |
Description |
|---|---|---|
|
UUID |
Workspace to move under; |
|
string |
Ignored; sibling order is set automatically. |
|
boolean |
Confirm a move that changes storage or access; without it such a move returns 422 with the impact. |
Response
Field |
Type |
|---|---|
|
UUID |
|
string |
|
string |
|
string |
|
object |
|
integer |
|
UUID |
|
integer |
|
string |
|
datetime |
|
datetime |
Get workspace descendants¶
GET /workspaces/{workspace_id}/descendants
Get all descendants of a workspace.
Parameters
Name |
In |
Type |
Required |
|---|---|---|---|
|
path |
UUID |
Yes |
|
query |
integer |
|
|
query |
integer |
Response A page of results (items, total, limit, offset). Each item:
Field |
Type |
|---|---|
|
UUID |
|
string |
|
string |
|
string |
|
object |
|
integer |
|
UUID |
|
integer |
|
string |
|
datetime |
|
datetime |
Create workspace storage¶
POST /workspace-storage/
Create storage configuration for a root workspace.
Request body
Field |
Type |
Required |
|---|---|---|
|
string |
Yes |
|
UUID |
Yes |
|
string |
Yes |
|
object |
|
|
object |
|
|
boolean |
|
|
string |
Response
Field |
Type |
|---|---|
|
UUID |
|
string |
|
UUID |
|
string |
|
object |
|
boolean |
|
boolean |
|
string |
|
string |
|
datetime |
|
datetime |
|
datetime |
List workspace storages¶
GET /workspace-storage/
List all workspace storage configurations for your organization.
Parameters
Name |
In |
Type |
|---|---|---|
|
query |
integer |
|
query |
integer |
Response A page of results (items, total, limit, offset). Each item:
Field |
Type |
|---|---|
|
UUID |
|
string |
|
UUID |
|
string |
|
object |
|
boolean |
|
boolean |
|
string |
|
string |
|
datetime |
|
datetime |
|
datetime |
Get workspace storage¶
GET /workspace-storage/{storage_id}
Get workspace storage by ID.
Parameters
Name |
In |
Type |
Required |
|---|---|---|---|
|
path |
UUID |
Yes |
Response
Field |
Type |
|---|---|
|
UUID |
|
string |
|
UUID |
|
string |
|
object |
|
boolean |
|
boolean |
|
string |
|
string |
|
datetime |
|
datetime |
|
datetime |
Update workspace storage¶
PATCH /workspace-storage/{storage_id}
Update workspace storage configuration.
Parameters
Name |
In |
Type |
Required |
|---|---|---|---|
|
path |
UUID |
Yes |
Request body
Field |
Type |
|---|---|
|
string |
|
object |
|
object |
|
boolean |
Response
Field |
Type |
|---|---|
|
UUID |
|
string |
|
UUID |
|
string |
|
object |
|
boolean |
|
boolean |
|
string |
|
string |
|
datetime |
|
datetime |
|
datetime |
Delete workspace storage¶
DELETE /workspace-storage/{storage_id}
Delete workspace storage.
Parameters
Name |
In |
Type |
Required |
|---|---|---|---|
|
path |
UUID |
Yes |
Response
The raw file content.
Get storage for workspace¶
GET /workspace-storage/workspace/{workspace_id}
Get storage configuration for a workspace (works for any depth).
Parameters
Name |
In |
Type |
Required |
|---|---|---|---|
|
path |
UUID |
Yes |
Response
Field |
Type |
|---|---|
|
UUID |
|
string |
|
UUID |
|
string |
|
object |
|
boolean |
|
boolean |
|
string |
|
string |
|
datetime |
|
datetime |
|
datetime |
Check storage health¶
POST /workspace-storage/{storage_id}/health-check
Run health check on workspace storage.
Parameters
Name |
In |
Type |
Required |
|---|---|---|---|
|
path |
UUID |
Yes |
Response
The raw file content.
What’s next?¶
API overview: authentication, worked examples, and error handling
Webhooks: get events pushed to your systems instead of polling
Service accounts: create the key an integration uses