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": "pull"
}'
{}
Authorization: Bearer ********************
pull
- team members can pull, but not push to or administer this repository.push
- team members can pull and push, but not administer this repository.admin
- team members can pull, push and administer this repository.permission
attribute will be used to determine what permission to grant the team on this repository.【GitHub】API开发者 微信交流群
用微信扫右侧二维码,加入【GitHub】API开发者 交流群,互助沟通