Перейти к содержимому

Modify Admin

PUT
/api/admin/{username}

Authorizations

Parameters

Path Parameters

username
required
string

Request Body required

object
password
string
is_sudo
required
boolean
telegram_id
integer
discord_webhook
string

Responses

200

Successful Response

object
username
required
string
is_sudo
required
boolean
telegram_id
integer
discord_webhook
string

403

You’re not allowed

404

Admin not found

422

Validation Error

object
detail
Array<object>
object
loc
required
Array
msg
required
string
type
required
string