Administration

Create a new user

Requires the authenticated user to be a site administrator.

post/admin/users

Request

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

Request body

source_idinteger
login_namestring
usernamestring required
full_namestring
emailstring email required
passwordstring
send_notifyboolean

Response

Created

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.