1
0
mirror of synced 2025-12-23 11:54:18 -05:00
Files
docs/content/rest/reference/collaborators.md
Rachael Sewell a340162d84 reorganize repository apis (#23728)
Co-authored-by: Lucas Costi <lucascosti@users.noreply.github.com>
Co-authored-by: Peter Bengtsson <peterbe@github.com>
2022-01-11 11:53:12 +10:00

1.2 KiB

title, intro, allowTitleToDifferFromFilename, versions, topics, miniTocMaxHeadingLevel
title intro allowTitleToDifferFromFilename versions topics miniTocMaxHeadingLevel
Collaborators The collaborators API allows you to add, invite, and remove collaborators from a repository. true
fpt ghes ghae ghec
* * * *
API
3

{% for operation in currentRestOperations %} {% unless operation.subcategory %}{% include rest_operation %}{% endunless %} {% endfor %}

Invitations

The Repository Invitations API allows users or external services to invite other users to collaborate on a repo. The invited users (or external services on behalf of invited users) can choose to accept or decline the invitations.

Note that the repo:invite OAuth scope grants targeted access to invitations without also granting access to repository code, while the repo scope grants permission to code as well as invitations.

Invite a user to a repository

Use the API endpoint for adding a collaborator. For more information, see "Add a repository collaborator."

{% for operation in currentRestOperations %} {% if operation.subcategory == 'invitations' %}{% include rest_operation %}{% endif %} {% endfor %}