API 参考 / me

切换当前活跃组织

PUT /api/v1/me/active-org · switchActiveOrg

更新 last_active_org_id。目标组织必须是当前用户所属组织。

鉴权:项目 API Token(Authorization: Bearer wfp_…)。详见 Agent 接入。

请求体

orgId(必填)
string

响应 · 204

已切换

错误

请求示例(curl)

curl -X PUT "https://workflow.games/api/v1/me/active-org" \
  -H "Authorization: Bearer wfp_…" \
  -H "content-type: application/json" \
  --data '{"orgId":"018f3c2e-0000-7000-8000-000000000000"}'

响应示例

HTTP/1.1 204
{}

合同真值:OpenAPI 3.1(0.1.0)。

相关:Agent 接入指南 · 使用指南 · API 参考索引

Workflow 正在加载…