DELETE/user/repository_invitations/{invitation_id}

Decline a repository invitation

Declines a repository invitation for the authenticated user. Use invitation_id to identify the invitation to decline. A 204 response confirms the invitation was declined without returning a response body.

1 parameter
invitation_idintegerrequired
The unique identifier of the repository invitation to decline.

5 status codes
204Returns no response body and confirms that the repository invitation was declined.
304Returned when the invitation has not changed.
403Returned when the authenticated user is not permitted to decline 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 declining it.
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional

Error handling

A 403 is returned when the authenticated user cannot decline 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 declining it.