Created
January 12, 2023 21:27
-
-
Save jmassardo/3a42c88f91fb5a2b39662fdab6a5c9f9 to your computer and use it in GitHub Desktop.
Auto create GitHub (GHEC) organizations via the GraphQL API endpoint
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -H "Authorization: token ${GH_PAT}" -X POST \ | |
-d '{"query": "mutation {create_org: createEnterpriseOrganization(input: {adminLogins: [\"<ADMIN_HANDLE>\", \"<ADMIN_HANDLE>\", \"<ADMIN_HANDLE>\"] billingEmail: \"<ADMIN_EMAIL>\" enterpriseId: \"<ENTPRISE_ID>\" login: \"<ORG_SLUG>\" profileName: \"<ORG_FULL_NAME>\" }){organization {id}}}"}' https://api.github.com/graphql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment