Skip to main content
POST
Deactivate a user account, preventing them from logging in and ending their active sessions. Deactivated users are not counted towards your license. The workspace owner cannot be deactivated.

Request Headers

string
required
API Key. Go to your Konstantly site > Settings > API and copy the value from there.

Request Body

string
required
User ID to deactivate: your own user ID or the Konstantly user ID (see User IDs)

Response

Returns the user object, with isBanned: true, in user.
object
required
The deactivated user

Error Responses

object
Returned when user is not found
object
Returned when user cannot be banned: already blocked, the workspace owner, or assigned as expert on courses