platform_workspaces
List, switch, or show the active workspace (tenant) to manage environments and ensure subsequent API calls use the correct context.
Instructions
[Arch Build] Arch creates and changes projects, agents, tools, configuration, versions, and deployments. Manage workspaces (tenants). Actions: list (all workspaces the user belongs to, with active flag), switch (atomically authorize and switch the authenticated socket, credentials, and subsequent calls), current (show active workspace decoded from JWT). Responses include activeTarget and contextVersion; surface the active environment/workspace to the user after a switch.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | ||
| tenantId | No | Tenant ID to switch to (required for switch) |