Add a collaborator
curl --request PUT \
--url https://gogs.example.com/api/v1/repos/{owner}/{repo}/collaborators/{collaborator} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"permission": "write"
}
'Collaborators and deploy keys
Add a collaborator
PUT
/
repos
/
{owner}
/
{repo}
/
collaborators
/
{collaborator}
Add a collaborator
curl --request PUT \
--url https://gogs.example.com/api/v1/repos/{owner}/{repo}/collaborators/{collaborator} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"permission": "write"
}
'Authorizations
Path Parameters
Response
Collaborator has been added.