Preview the new Organization Memberships APIs

We're releasing new endpoints and changes to existing endpoints to better help you administer your GitHub organizations and repositories.

New endpoints

Changes to existing API endpoints

  • The default_repository_permission and members_can_create_repositories settings for an organization can now be retrieved and set through the Get an organization and Edit an organization endpoints.

  • The Create team endpoint now offers the maintainers parameter which will allow you to add team maintainers upon creation.

  • You can now use the affiliation parameter with the List collaborators endpoint to filter a repository's collaborators by their affiliation type.

To access the Organization Membership APIs during the preview period, you must provide a custom media type in the Accept header:

application/vnd.github.korra-preview+json

During the preview period, we may change aspects of these API methods based on developer feedback. If we do, we will announce the changes here on the developer blog, but we will not provide any advance notice.

If you have any questions or feedback, please let us know!