Deactivate a user
POST/v1/users/:id/deactivate
Deactivates an active or pending user. A deactivated user can no longer sign in.
Request
Responses
- 200
- 401
- 403
- 404
- 422
User deactivated
Missing or invalid bearer token.
The public API is not enabled for this account (err_feature_not_enabled), the acting user is not allowed to manage users (requires the users:manage permission), or the API key lacks the users:deactivate scope (err_insufficient_scope).
User not found (err_user_not_found).
The user is not active or pending (err_invalid_status_transition).