Collaborators and Deploy Keys

Add a collaborator

put/repos/{owner}/{repo}/collaborators/{collaborator}

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

collaboratorstring required

Collaborator username

Request body

permission'read' | 'write' | 'admin'

Response

Collaborator has been added.

Changes

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