AgentConnect
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.

GET
/v1/orgs/{orgId}/members/{id}/removal-preview

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

orgId*string
id*string

Response Body

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  }}