Skip to content
This repository was archived by the owner on Feb 7, 2026. It is now read-only.

Latest commit

 

History

History
48 lines (38 loc) · 916 Bytes

File metadata and controls

48 lines (38 loc) · 916 Bytes

Collaborators

Add user as a collaborator

PUT /repos/:username/:reponame/collaborators/:collaborator

Parameters

Name Type Description
permission string The permission to grant the collaborator. Can be one of read, write and admin. Default is write. Read details on forum

Get collaborators

GET /repos/:username/:reponame/collaborators

Response

Status: 200 OK
[
  {
    "id": 3,
    "username": "user1",
    "login": "user1",
    "full_name": "",
    "email": "user1@user.com",
    "avatar_url": "https://secure.gravatar.com/avatar/0207f4280f6c1bd45e1a2ed7cb1cca3d",
    "permissions": {
      "admin": false,
      "push": true,
      "pull": true
    }
  }
]

Delete collaborator

DELETE /repos/:username/:reponame/collaborators/:collaborator