Workspace by ID
https://api.xata.io/workspaces/workspace_id
This endpoint contains operations for a specific workspace, referenced by ID.
Expected Parameters
Name | Description | In | Required | Schema |
---|---|---|---|---|
workspace_id | Workspace ID | path | ✅ | string |
Get an Existing Workspace
GEThttps://api.xata.io/workspaces/workspace_id
Retrieve workspace info from a workspace ID
Status Code | Description | Example Response/Type Definition |
---|---|---|
200 | OK |
|
400 | Bad Request |
|
401 | Authentication Error |
|
403 | Authentication Error |
|
404 | Example response |
|
5XX | Unexpected Error |
Update an Existing Workspace
PUThttps://api.xata.io/workspaces/workspace_id
Update workspace info
Request Body Type Definition
1 2 3 4 5 6
type UpdateWorkspace = WorkspaceMeta; type WorkspaceMeta = { name: string; slug?: string; };
Status Code | Description | Example Response/Type Definition |
---|---|---|
200 | OK |
|
400 | Bad Request |
|
401 | Authentication Error |
|
403 | Authentication Error |
|
404 | Example response |
|
5XX | Unexpected Error |
Delete an Existing Workspace
DELETEhttps://api.xata.io/workspaces/workspace_id
Delete the workspace with the provided ID
Status Code | Description | Example Response/Type Definition |
---|---|---|
204 | No Content | |
400 | Bad Request |
|
401 | Authentication Error |
|
403 | Authentication Error |
|
404 | Example response |
|
5XX | Unexpected Error |