Skip to content

Lock / Unlock#

Lock a User.

Query#

PATCH /api/v1/user/{id}

With:

  • id: id or login of the user

Request Body Example#

{
  "locked": true
}
{
  "locked": false
}

The following fields are required:

  • locked: (Boolean)

Response#

Status codes#

  • 204: if User is locked successfully
  • 401: Authentication error
  • 403: Authorization error

Last update: September 6, 2021 07:39:12