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: October 13, 2023 07:01:35