Skip to content
Try Gitea Cloud ☁️ for 30 days → Accelerate your Development & Deploys!
This is the documentation of the next version, still under development. See the latest release.

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

APIForbiddenError is a forbidden error response

message
string
url
string

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