curl --request PATCH \
--url https://gogs.example.com/api/v1/admin/users/{username} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"email": "[email protected]",
"source_id": 123,
"login_name": "<string>",
"full_name": "<string>",
"password": "<string>",
"website": "<string>",
"location": "<string>",
"active": true,
"admin": true,
"allow_git_hook": true,
"allow_import_local": true,
"max_repo_creation": 123
}
'