v51

latestSwagger 2.0AGPL-3.0-or-laterraw.githubusercontent.com2026-08-0116998415.7 KB
admin

Promote or demote a user (admin)

Toggle the instance-admin flag on a user. Demoting the last remaining admin is refused with 400.

patch/admin/users/{id}/admin

Path parameters

idinteger required

User ID

Request body

is_adminboolean

Pointer to distinguish "omitted" from false; an empty body would silently demote otherwise.

Response

OK

auth_providerstring
bot_owner_idinteger

BotOwnerID is the ID of the owning (human) user if this user is a bot. A non-zero value means this user is a bot and cannot authenticate via password.

createdstring

A timestamp when this task was created. You cannot change this value.

emailstring

The user's email address.

idinteger

The unique, numeric id of this user.

is_adminboolean
issuerstring
namestring

The full name of the user.

status0 | 1 | 2 | 3
subjectstring
updatedstring

A timestamp when this task was last updated. You cannot change this value.

usernamestring

The username of the user. Is always unique.