---
title: "Add a collaborator"
method: PUT
path: "/repos/{owner}/{repo}/collaborators/{collaborator}"
tags: ["Collaborators and Deploy Keys"]
---

# Add a collaborator

`PUT /repos/{owner}/{repo}/collaborators/{collaborator}`

## Path parameters

- `owner` string, required
- `repo` string, required
- `collaborator` string, required

## Request body

- object
  - `permission` 'read' | 'write' | 'admin'

## Response `204`

Collaborator has been added.

## Other responses

- `404` — Resource not found.
- `422` — Validation error.

---

[API](https://skmtc.net/gogs/apis/gogs-api.md) · [All operations](https://skmtc.net/gogs/apis/gogs-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gogs/gogs-api/versions/87e2da32266c/schema)
