Workspace and member management routes (ACL-001, ACL-002).
Endpoints
| Method | Path | Description | Min Role |
|---|---|---|---|
| GET | /api/workspaces |
List user's workspaces | viewer |
| POST | /api/workspaces/switch |
Switch active workspace | viewer |
| GET | /api/workspaces/current |
Get current workspace info | viewer |
| PATCH | /api/workspaces/current |
Update workspace name/slug | admin |
| GET | /api/workspaces/current/members |
List workspace members | viewer |
| POST | /api/workspaces/current/members |
Invite a member | admin |
| PATCH | /api/workspaces/current/members/:userId |
Update member role | admin |
| DELETE | /api/workspaces/current/members/:userId |
Remove a member | admin |
- Source: