Skip to main content

collaborators

Overview

Namecollaborators
TypeResource
Idgithub.projects.collaborators

Fields

NameDatatype
idinteger
namestring
followers_urlstring
loginstring
urlstring
events_urlstring
following_urlstring
starred_urlstring
gravatar_idstring
received_events_urlstring
gists_urlstring
emailstring
typestring
avatar_urlstring
html_urlstring
repos_urlstring
subscriptions_urlstring
organizations_urlstring
starred_atstring
site_adminboolean
node_idstring

Methods

NameAccessible byRequired ParamsDescription
list_collaboratorsSELECTproject_idLists the collaborators for an organization project. For a project, the list of collaborators includes outside collaborators, organization members that are direct collaborators, organization members with access through team memberships, organization members with access through default organization permissions, and organization owners. You must be an organization owner or a project admin to list collaborators.
add_collaboratorINSERTproject_id, usernameAdds 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.
remove_collaboratorDELETEproject_id, usernameRemoves a collaborator from an organization project. You must be an organization owner or a project admin to remove a collaborator.