Repository Collaborators API breaking change with Repository Invitation API becoming official on June 26

We're making the Repository Invitation API part of the official GitHub API on June 26, 2017. This will be a breaking change to the API and the API endpoint for directly adding a collaborator to a repository. You will no longer be able to directly add a user to a repository. Instead, the user will receive an invitation, which they can accept or decline via email, notification, or API endpoint.

During the preview period you needed to provide the application/vnd.github.swamp-thing-preview preview media type in the Accept header to opt-in to the changes. Once the preview period ends, you will no longer need to specify this custom media type.

For details on how to use the repository invitations endpoints, please refer to the API documentation.

If you have any questions or feedback, please get in touch with us!