admin
permissions for the project. The project and team must be part of the same organization.org_id
and team_id
using the route PUT /organizations/{org_id}/team/{team_id}/projects/{project_id}
.curl --location --request PUT 'https://api.github.com/orgs//teams//projects/' \
--header 'Content-Type: application/json' \
--data-raw '{
"permission": "read"
}'
{}
Authorization: Bearer ********************
read
- team members can read, but not write to or administer this project.write
- team members can read and write, but not administer this project.admin
- team members can read, write and administer this project.permission
attribute will be used to determine what permission to grant the team on this project. Note that, if you choose not to pass any parameters, you'll need to set Content-Length
to zero when calling out to this endpoint. For more information, see "HTTP verbs."【GitHub】API开发者 微信交流群
用微信扫右侧二维码,加入【GitHub】API开发者 交流群,互助沟通