Skip to main content
PUT
/
admin
/
teams
/
{teamid}
/
repos
/
{reponame}
Add or update team repository
curl --request PUT \
  --url https://gogs.example.com/api/v1/admin/teams/{teamid}/repos/{reponame} \
  --header 'Authorization: <api-key>'

Authorizations

Authorization
string
header
required

Personal access token. Use format: token {YOUR_ACCESS_TOKEN}

Path Parameters

teamid
string
required

Team ID

reponame
string
required

Repository name

Response

Team repository has been updated.