Members and roles
Remove a member
Permission
members:deleteAuthenticationDELETE
Removes the membership and revokes active sessions and API keys created by that user in this workspace. The last owner cannot be removed. This operation accepts no request body.
bearerAuthheader
AuthorizationBearer <token>Use a Voice API key or connected-app OAuth access token. Authentication.
id*stringFormat
uuidIf-Match?stringOptional strong ETag (or *) from a prior response. A stale tag returns 412 without changing the resource.
Cleanup report for the removed membership.
application/json- response
membership_id*stringFormat
uuidremoved_user_id*stringFormat
uuidrevoked_api_keys*integerFormat
int64Range
0 <= valuerevoked_sessions*integerFormat
int64Range
0 <= valuecurl -X DELETE 'https://api.kejue.co/v1/members/497f6eca-6276-4993-bfeb-53cbbbba6f08'Example Response
{ "membership_id": "a4a28f8e-1ae6-49f7-beed-4e090aa324f4", "removed_user_id": "daa5dc96-4596-42e2-9190-944718d45558", "revoked_api_keys": 0, "revoked_sessions": 0}