Skip to navigation

Remove a person from the account

Removes the person. An owner can remove anyone; any person can remove themselves, which is how they leave. The last owner cannot be removed and cannot leave (409 last_owner). In the same transaction every key the person minted is revoked, with the keys minted from it, and each gets an api_key.deleted audit entry with reason member.removed.

People: owner, or the person themselves.

curl -sS -X DELETE "$MEADOW_BASE_URL/v1/members/$USER_ID" -H "Authorization: Bearer $SESSION_TOKEN"

Authentication

AuthorizationBearer

A Meadow API key, sent as Authorization: Bearer mdw_.... The header x-api-key: mdw_... is accepted in its place.

Path parameters

user_idstringRequired
The person's user id.

Response

Removed. No body.

Errors

401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error
500
Internal Server Error