AgentConnect
Members

Preview a leave or removal

What DELETE /members/:id would do to Selected audiences: which current member would be added only where the audience would otherwise become empty, and per-resource-kind counts for all affected and reassigned audiences. Same authorization as the removal itself. Advisory only: nothing is locked, and the removal re-derives the replacement 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    }  ]}