Server administration

Set the locked status of a particular user.

Sets the locked status of a particular server-local user.

The user calling this endpoint MUST be a server admin. The client SHOULD check that the user is allowed to lock other users at the GET /capabilities endpoint prior to using this endpoint.

In order to prevent user enumeration, servers MUST ensure that authorisation is checked prior to trying to do account lookups.

put/_matrix/client/v1/admin/lock/{userId}

Request

Path parameters

userIdstring mx-user-id required

The user to change the locked status of.

Request body

lockedboolean required

Whether to lock the target account.

Example request

{
  "locked": true
}

Response

The action was successful.

lockedboolean required

Whether the target account is locked.

Example response

{
  "locked": true
}

Changes

No recorded changes to this operation across all 1 revision of this API.