Workspaces & 团队

Workspace 是多租户隔离单元。每个开发者自动获得一个 Personal Workspace,团队可创建 Team Workspace。

角色

角色说明
Owner创建者,拥有全部管理权限。
Admin可管理成员、邀请、客户端和配额。
Member可使用 workspace 资源。

邀请成员

POST /api/workspaces/:id/invitations
Content-Type: application/json
Authorization: Bearer ACCESS_TOKEN

{
  "email": "colleague@example.com",
  "role": "member"
}

成员与配额 API

GET    /api/workspaces/:id
GET    /api/workspaces/:id/members
POST   /api/workspaces/:id/members
DELETE /api/workspaces/:id/members/:memberId
GET    /api/workspaces/:id/subscription
PUT    /api/workspaces/:id/quotas/:resource
GET    /api/workspaces/:id/app-quotas