Users and roles
Suspend or restore an account
POST/api/v1/admin/users/:id/active
Who can use this: Site adminsAs Markdown
Suspending stops every way the account signs in, all at once: the web, single sign-on, reading mail and sending it. It also ends the account's current sign-in sessions and their refresh tokens, so it can't go on using one it already has. Restoring lets it sign in again. Nothing is deleted either way.
Parameters
| Name | Where | What it is |
|---|---|---|
| id required | path | The account's number, from the account list.e.g. 7 |
| active required | body | false to suspend the account, true to restore it.e.g. false |
Good to know
- Leaving out
activecounts as false, so it suspends. - You can't suspend your own account; the answer is 400.
- An unknown account answers 404.