Deactivate user
POST/v2/users/:userId/deactivate
The state of the user will be changed to 'deactivated'. The user will not be able to log in anymore. The endpoint returns an error if the user is already in the state 'deactivated'. Use deactivate user when the user should not be able to use the account anymore, but you still need access to the user data..
Request​
Responses​
- 200
- 400
- 401
- 403
- 404
- default
OK
The request is malformed.
Returned when the user is not authenticated.
Returned when the user does not have permission to access the resource.
User ID does not exist.
An unexpected error response.