Remove a member from the org
DELETE /v1/members/{user_id}
Owners only, and the way someone is offboarded. The last owner cannot be removed (409 invalid_state). API keys belong to the org, not to the person who created them, so they keep working; revoke the departing person's keys separately if their access should end with them.
Credential. A dashboard session token belonging to an owner of the organisation.
curl --fail-with-body -X DELETE "https://api-833252724876.us-central1.run.app/v1/members/usr_b2c3d4e5f6g7h8i9j0k1" \
-H "Authorization: Bearer $JEAN_SESSION_TOKEN"
Path
| Name | Type | Required | Notes |
|---|---|---|---|
user_id | string | yes |
Response · 204
Successful Response
Errors
| Status | Meaning |
|---|---|
401 | Unauthenticated, invalid token or revoked key. |
403 | Forbidden, session required or org required. |
404 | No such resource in this org. |
409 | An org must keep at least one owner; this would remove the last. |
422 | Validation failed. |
429 | Quota or rate limit exceeded; error.details says which, and when. |
500 | Internal error; quote error.request_id when reporting it. |
Every one carries the same envelope.