---
title: "Add project collaborator"
method: PUT
path: "/projects/{project_id}/collaborators/{username}"
tags: ["projects"]
---

# Add project collaborator

`PUT /projects/{project_id}/collaborators/{username}`

Adds a collaborator to an organization project and sets their permission level. You must be an organization owner or a project `admin` to add a collaborator.

## Path parameters

- `project_id` integer, required
- `username` string, required

## Request body

- object, nullable
  - `permission` 'read' | 'write' | 'admin' — The permission to grant the collaborator.

## Response `204`

Response

## Other responses

- `304` — Not modified
- `401` — Requires authentication
- `403` — Forbidden
- `404` — Resource not found
- `422` — Validation failed, or the endpoint has been spammed.

---

[API](https://skmtc.net/github/apis/github-v3-rest-api-4.md) · [All operations](https://skmtc.net/github/apis/github-v3-rest-api-4/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/github/github-v3-rest-api-4/versions/ee6c7a46328e/schema)
