apicheats.dev Cheat sheet Raw .md
PUT

Try PUT /repos/{owner}/{repo}/collaborators/{username} — GitHub API

GitHub playground

Add a repository collaborator

Credentials

Kept in this tab only. Requests go through apicheats.dev's same-origin proxy straight to api.github.com; the proxy stores and logs nothing about them.

Headers

Path

Body application/json

1 body fields
  • permission · optional · string — The permission to grant the collaborator. **Only valid on organization-owned repositories.** We accept the following permissions to be set: `pull`, `triage`, `triage_plus`, `push`, `maintain`, `admin` and you can also specify a custom repository role name, if the owning organization has defined any.