Administration

Create a public key for a user

Requires the authenticated user to be a site administrator.

post/admin/users/{username}/keys

Request

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

Path parameters

usernamestring required

Username

Request body

titlestring required
keystring required

Response

Created

idinteger
keystring
urlstring
titlestring
created_atstring date-time

Changes

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