Skip to content
Try Gitea Cloud ☁️ for 30 days → Accelerate your Development & Deploys!

Add a team to a repository

PUT
/repos/{owner}/{repo}/teams/{team}
curl --request PUT \
--url https://gitea.com/api/v1/repos/example/example/teams/example \
--header 'Authorization: Basic <credentials>'
owner
required
string

Owner of the repo

repo
required
string

Name of the repo

team
required
string

Team name

APIEmpty is an empty response

APINotFound is a not found empty response

APIError is error format response

message
string
url
string

APIValidationError is error format response related to input validation

message
string
url
string