Members
Change a member’s role
Owner-only. Changes a member’s role; the last owner can’t be demoted, which would orphan the org.
授权
bearerAuth 授权Bearer <token>
位置: header
路径参数
orgId*string
id*string
请求主体
application/json
TypeScript 定义
在 TypeScript 中使用 request body 类型。
响应主体
application/json
application/json
application/json
application/json
curl -X PATCH "https://example.com/v1/orgs/string/members/string" \ -H "Content-Type: application/json" \ -d '{ "role": "owner" }'{ "userId": "string", "email": "string", "name": "string", "picture": "string", "role": "owner", "isCurrentUser": true, "joinedAt": "string"}