PATCH
/user/repository_invitations/{invitation_id}Accept a repository invitation
Accepts a repository invitation for the authenticated user. Use invitation_id to identify the invitation to accept. A 204 response confirms acceptance without returning a response body.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
invitation_idintegerrequired
The unique identifier of the repository invitation to accept.
204Returns no response body and confirms that the repository invitation was accepted.
304Returned when the invitation has not changed.
403Returned when the authenticated user is not permitted to accept the invitation.
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional
404Returned when the invitation identified by `invitation_id` cannot be found.
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional
409Returned when the invitation's state conflicts with accepting it.
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional
Error handling
A 403 is returned when the authenticated user cannot accept the invitation. A 404 is returned when the invitation_id path parameter does not identify an invitation. A 409 is returned when the invitation's state conflicts with accepting it.