Remove a Member
Remove a member from your active account. The member immediately loses access to the account and all of its resources. Their personal user record is not deleted — only their membership in this account.
The account owner cannot be removed. There is always exactly one owner, and ownership can only be handed to another member via /account/transfer-owner. You also cannot remove yourself with this endpoint — transfer ownership first if you are the owner, or leave the account from the account switcher.
Permission required
Calling this endpoint requires the members:delete permission on the active account.
Path parameters
userID int64
The user id of the member to remove. Look this up via /account/members.
Response (200 OK)
success boolean
true when the member was removed.Errors
400 Bad Request
Invalid user id, an attempt to remove yourself, or an attempt to remove the account owner.
401 Unauthorized
Missing or invalid auth.
403 Forbidden
No active account selected, or the caller lacks
members:delete.Request
curl -X DELETE "https://api.ngris.com/v1/account/members/2048" \
-H "X-API-KEY: <your_api_key>"
Python
from ngris import Ngris
client = Ngris(api_key="<your_api_key>")
client.account.remove_member(user_id=2048)
Response — 200 OK
{
"success": true
}