Request: POST /users/deactivate
Permissions to Run the Request
Account Owner, Account Administrators, Department Administrators, or custom roles.
Department Administrators and users with a custom role may activate or deactivate only users belonging to the departments they manage or their daughter departments.
Request Headers
| Authorization (required) | Access token. You can obtain a token by making a request. |
| Parameter | Description |
|---|---|
| userIds (required) | The ID users you want to deactivate. |
Possible Response Codes
| 200 | OK | A user's status is changed. |
| 400 | Bad Request | A request error. |
| 401 | Unauthorized | An authorization error. |
| 403 | Permission Denied | The user doesn't have enough permissions to activate or deactivate users. For example, Department Administrators can't activate or deactivate users who don't belong to the departments they manage. |
Sample Request
|
Sample Response
|