# Check team permissions for a project

From **GitHub v3 REST API**.

`GET /orgs/{org}/teams/{team_slug}/projects/{project_id}`

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}`.

## Parameters

### `org`

- Location: path
- Required: true
- Type: `string`

### `team_slug`

- Location: path
- Required: true
- Type: `string`

team_slug parameter

### `project_id`

- Location: path
- Required: true
- Type: `integer`

## Responses

### `200`

Response

### `application/json`

- Type: `object`

A team's access to a project.

```json
{
  "body": "High-level roadmap for the upcoming year.",
  "columns_url": "https://api.github.com/projects/1002605/columns",
  "created_at": "2011-04-11T20:09:31Z",
  "creator": {
    "avatar_url": "https://github.com/images/error/octocat_happy.gif",
    "events_url": "https://api.github.com/users/octocat/events{/privacy}",
    "followers_url": "https://api.github.com/users/octocat/followers",
    "following_url": "https://api.github.com/users/octocat/following{/other_user}",
    "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
    "gravatar_id": "",
    "html_url": "https://github.com/octocat",
    "id": 1,
    "login": "octocat",
    "node_id": "MDQ6VXNlcjE=",
    "organizations_url": "https://api.github.com/users/octocat/orgs",
    "received_events_url": "https://api.github.com/users/octocat/received_events",
    "repos_url": "https://api.github.com/users/octocat/repos",
    "site_admin": false,
    "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
    "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
    "type": "User",
    "url": "https://api.github.com/users/octocat"
  },
  "html_url": "https://github.com/orgs/api-playground/projects/1",
  "id": 1002605,
  "name": "Organization Roadmap",
  "node_id": "MDc6UHJvamVjdDEwMDI2MDU=",
  "number": 1,
  "organization_permission": "write",
  "owner_url": "https://api.github.com/orgs/octocat",
  "permissions": {
    "admin": false,
    "read": true,
    "write": true
  },
  "private": false,
  "state": "open",
  "updated_at": "2014-03-04T18:58:10Z",
  "url": "https://api.github.com/projects/1002605"
}
```

```json
{"description":"A team's access to a project.","properties":{"body":{"nullable":true,"type":"string"},"columns_url":{"type":"string"},"created_at":{"type":"string"},"creator":{"$ref":"#/components/schemas/simple-user"},"html_url":{"type":"string"},"id":{"type":"integer"},"name":{"type":"string"},"node_id":{"type":"string"},"number":{"type":"integer"},"organization_permission":{"description":"The organization permission for this project. Only present when owner is an organization.","type":"string"},"owner_url":{"type":"string"},"permissions":{"properties":{"admin":{"type":"boolean"},"read":{"type":"boolean"},"write":{"type":"boolean"}},"required":["read","write","admin"],"type":"object"},"private":{"description":"Whether the project is private or not. Only present when owner is an organization.","type":"boolean"},"state":{"type":"string"},"updated_at":{"type":"string"},"url":{"type":"string"}},"required":["owner_url","url","html_url","columns_url","id","node_id","name","body","number","state","creator","created_at","updated_at","permissions"],"title":"Team Project","type":"object"}
```

### `404`

Not Found if project is not managed by this team

## Request examples

### cURL

```shell
curl --request GET \
  --url {protocol}://{hostname}/api/v3/orgs/{org}/teams/{team_slug}/projects/{project_id}
```
