Collaborators and Deploy Keys

Add a deploy key

post/repos/{owner}/{repo}/keys

Request

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

Path parameters

ownerstring required

Repository owner

repostring required

Repository name

Request body

titlestring required
keystring required

Response

Created

idinteger
keystring
urlstring
titlestring
created_atstring date-time
read_onlyboolean

Changes

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