This version of GitHub Enterprise Server was discontinued on 2024-12-19. No patch releases will be made, even for critical security issues. For better performance, improved security, and new features, upgrade to the latest version of GitHub Enterprise Server. For help with the upgrade, contact GitHub Enterprise support.
REST API endpoints for enterprise organizations
Use the REST API to create organizations on your enterprise.
About organization administration
These endpoints are only available to authenticated site administrators. Normal users will receive a 404 response.
Note
These endpoints only support authentication using a personal access token (classic). For more information, see Managing your personal access tokens.
Create an organization
Fine-grained access tokens for "Create an organization"
This endpoint does not work with GitHub App user access tokens, GitHub App installation access tokens, or fine-grained personal access tokens.
Parameters for "Create an organization"
| Name, Type, Description |
|---|
accept string Setting to |
| Name, Type, Description |
|---|
login string RequiredThe organization's username. |
admin string RequiredThe login of the user who will manage this organization. |