v50

latestOpenAPI 3.0.3MITraw.githubusercontent.com2024-03-2585861610.1 MB
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}

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