projects

Add project collaborator

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.

put/projects/{project_id}/collaborators/{username}

Request

  • Base URL: http://HOSTNAME/api/v3
  • URL: http://HOSTNAME/api/v3/projects/{project_id}/collaborators/{username}
  • Auth: none declared

Path parameters

project_idinteger required

The unique identifier of the project.

usernamestring required

The handle for the GitHub user account.

Request body

permission'read' | 'write' | 'admin'

The permission to grant the collaborator.

Example request

{
  "permission": "write"
}

Response

Response

Changes

No recorded changes to this operation across all 50 revisions of this API.