Members
Preview a leave or removal
What DELETE /members/:id would do: which current member would be added to Selected audiences that would otherwise become empty, per-resource-kind counts for all affected and reassigned audiences, and how many chat bots bound to the member and direct messages opened for them would be turned off. Same authorization as the removal itself. Advisory only: nothing is locked, and the removal re-derives everything inside the transaction.
授权
bearerAuth 授权Bearer <token>
位置: header
路径参数
orgId*string
id*string
响应主体
application/json
application/json
application/json
curl -X GET "https://example.com/v1/orgs/string/members/string/removal-preview"{ "replacement": { "userId": "string", "email": "string", "name": "string", "picture": "string", "role": "owner", "isCurrentUser": true, "joinedAt": "string" }, "resources": [ { "kind": "agent", "selected": -9007199254740991, "reassigned": -9007199254740991 } ], "chat": { "bots": -9007199254740991, "directMessages": -9007199254740991 }}