Request: POST /user/{userId}/scheduled_deactivation
Permissions to Run the Request
Account Owner, Account Administrators, Department Administrators, or custom roles.
Department Administrators and users with a custom role may automatically 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 |
|---|---|
| user_id (required) | The ID of a user you want to deactivate on a specified date. |
| date (required) | The date of automatic blocking in the yyyy-mm-dd format, for example, 2020-12-27. |
Possible Response Codes
| 200 | OK | The date of automatic blocking is set. |
| 400 | Bad Request | A request error. |
| 401 | Unauthorized | An authorization error. |
| 403 | Permission Denied | The user doesn't have enough permissions. |
Sample Request
|
Sample Response
|