PATCH
/repos/{owner}/{repo}/invitations/{invitation_id}Update a repository invitation
Updates the permissions on a repository invitation. Supply permissions to set the invitee's access level; accepted values are read, write, maintain, triage, and admin. A 200 response returns the updated invitation, including its repository, invitee, inviter, and permissions.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
ownerstringrequired
The account owner of the repository; the name is not case-sensitive.
repostringrequired
The repository name without the `.git` extension; the name is not case-sensitive.
invitation_idintegerrequired
The unique identifier of the invitation to update.
Optional update payload for the repository invitation.
permissionsstringoptional
The permissions that the associated user will have on the repository. Valid values are `read`, `write`, `maintain`, `triage`, and `admin`.
200Returns the updated repository invitation, including its repository, invitee, inviter, permissions, and creation time.
idintegerrequired
Unique identifier of the repository invitation.
repositoryobjectrequired
Minimal Repository
inviteeobjectrequired
A GitHub user.
inviterobjectrequired
A GitHub user.
permissionsstringrequired
The permission associated with the invitation.
created_atstringrequired
expiredbooleanoptional
Whether or not the invitation has expired
urlstringrequired
URL for the repository invitation
html_urlstringrequired
node_idstringrequired
Error handling
The owner path parameter and repo path parameter must identify the repository containing the invitation. The invitation_id path parameter must identify the invitation to update. If supplied, permissions must be one of: read, write, maintain, triage, or admin.