# Activate or deactivate a user

`POST https://testing-backend.estactics.com/api/users/activateUser`

Turns an account on or off. When you deactivate someone, you can move their clients to another user.

Authentication: `Authorization: Bearer YOUR_API_KEY`. Required permission: `users.MANAGE_ORG_USERS`.

## Body parameters

- `userId` (integer, required): ID of the user.
- `activate` (boolean, required): True to activate, false to deactivate.
- `assignUserClientsToUserId` (integer): ID of the user who takes over the clients.

## Example request body

```json
{
  "userId": 19,
  "activate": true
}
```
