Skip to Content
Members and roles

Remove a member

Permissionmembers:deleteAuthentication
DELETE
/members/{id}

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.

Authorization

bearerAuth
headerAuthorizationBearer <token>

Use a Voice API key or connected-app OAuth access token. Authentication.

Path Parameters

id*string
Formatuuid

Header Parameters

If-Match?string

Optional strong ETag (or *) from a prior response. A stale tag returns 412 without changing the resource.

Response Body

Cleanup report for the removed membership.

application/json
  1. response
membership_id*string
Formatuuid
removed_user_id*string
Formatuuid
revoked_api_keys*integer
Formatint64
Range0 <= value
revoked_sessions*integer
Formatint64
Range0 <= value
Example Request
curl -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}