Github API

Getting access, Developing, Testing

Back to Github

Add or update team project permissions

Adds an organization project to a team. To add a project to a team or update the team's permission on a project, the authenticated user must have admin permissions for the project. The project and team must be part of the same organization.

Note: You can also specify a team by org_id and team_id using the route PUT /organizations/{org_id}/team/{team_id}/projects/{project_id}.

Input

type: object properties: parameters: type: object properties: org: type: string description: The organization name. The name is not case sensitive. team_slug: type: string description: The slug of the team name. project_id: type: integer description: The unique identifier of the project. required: - org - team_slug - project_id title: Parameters data: type: object properties: permission: type: string description: >- The permission to grant to the team for this project. Default: the team's `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 this endpoint. For more information, see "[HTTP verbs](https://docs.github.com/rest/overview/resources-in-the-rest-api#http-verbs)." enum: - read - write - admin title: Data