422 Unprocessable Entity
status if you attempt to add a repository to a team that is not owned by the organization.Content-Length
to zero when calling out to this endpoint. For more information, see "HTTP verbs."curl --location --request PUT 'https://api.github.com/teams//repos//' \
--header 'Content-Type: application/json' \
--data-raw '{
"permission": "push"
}'
{}
permission
attribute will be used to determine what permission to grant the team on this repository.