Chelabase
ManagementMembers

Suspend a member

POST
/v1/members/{member_id}/suspend

The member is refused everywhere but GET /v1/me (member_suspended) and keeps their grants. Their personal Postgres logins are revoked at once (the proxies forget them), their member roles get new passwords on every branch they reach (open sessions end), and realtime drops what they watched, all in this request. When they are an active member of no other tenant, their account's sessions end too; otherwise those sessions stay, and minting a token for this tenant is refused. The account isn't banned. Suspending a suspended member again writes nothing new; every other step is redone.

Authorization

bearer
AuthorizationBearer <token>

In: header

Path Parameters

member_id*string

Member id

Formatuuid

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/members/497f6eca-6276-4993-bfeb-53cbbbba6f08/suspend"
{  "accepted_at": "2019-08-24T14:15:22Z",  "access": {    "level": "tenant_admin",    "projects": [      {        "platform_role": "viewer",        "project_id": "405d8375-3514-403b-8c43-83ae74cfe0e9",        "via": "own"      }    ]  },  "created_at": "2019-08-24T14:15:22Z",  "display_name": "string",  "email": "string",  "has_access": true,  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "invite": {    "expires_at": "2019-08-24T14:15:22Z",    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"  },  "status": "invited",  "suspended_at": "2019-08-24T14:15:22Z",  "suspended_by": "c2e368d8-db1b-4e27-8850-4fa018b3a2bc",  "tenant_admin": true}