project_permissions
Overview
Name | project_permissions |
Type | Resource |
Id | github.teams.project_permissions |
Fields
Name | Datatype | Description |
---|---|---|
id | integer | |
name | string | |
body | string | |
columns_url | string | |
created_at | string | |
creator | object | A GitHub user. |
html_url | string | |
node_id | string | |
number | integer | |
organization_permission | string | The organization permission for this project. Only present when owner is an organization. |
owner_url | string | |
permissions | object | |
private | boolean | Whether the project is private or not. Only present when owner is an organization. |
state | string | |
updated_at | string | |
url | string |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
check_permissions_for_project_in_org | SELECT | org, project_id, team_slug | Checks whether a team has read , write , or admin permissions for an organization project. The response includes projects inherited from a parent team.Note: You can also specify a team by org_id and team_id using the route GET /organizations/{org_id}/team/{team_id}/projects/{project_id} . |
check_permissions_for_project_legacy | SELECT | project_id, team_id | Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new Check team permissions for a project endpoint. Checks whether a team has read , write , or admin permissions for an organization project. The response includes projects inherited from a parent team. |
add_or_update_project_permissions_in_org | EXEC | org, project_id, team_slug | 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} . |
add_or_update_project_permissions_legacy | EXEC | project_id, team_id | Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new Add or update team project permissions endpoint. 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. |