Administration

Edit an existing user

Requires the authenticated user to be a site administrator.

patch/admin/users/{username}

Request

  • Base URL
    https://gogs.example.com/api/v1
  • Auth
    API key in header Authorization

Path parameters

usernamestring required

Username

Request body

source_idinteger
login_namestring
full_namestring
emailstring email required
passwordstring
websitestring
locationstring
activeboolean
adminboolean
allow_git_hookboolean
allow_import_localboolean
max_repo_creationinteger

Maximum number of repositories the user can create. -1 means no limit.

Response

Success

idinteger
usernamestring
loginstring

Alias of username for GitHub API compatibility

full_namestring
emailstring email
avatar_urlstring

Changes

No recorded changes to this operation across all 3 revisions of this API.