Showing results for 
Search instead for 
Did you mean: 
Copilot Lvl 2
Message 1 of 5

Create repository via GraphQL

Solved! Go to Solution.

From here -, creating a repo via GraphQL was not yet supported. The last update on that thread was Feb 8, 2018, and since the community has moved platforms.


Is there any update if create repository is now supported in GraphQL? I do not see a createRepository mutation in the documentation but perhaps there is another method.



4 Replies
Community Manager
Message 2 of 5

Re: Create repository via GraphQL

Hi @CraigMilhiser,

Thanks for asking! You are correct, there is not currently a method for creating repositories using the GraphQL API. To create a repository, you will still need to use the Create a repository v3 API endpoint.



Copilot Lvl 2
Message 3 of 5

Re: Create repository via GraphQL

I would suggest placing this information directly on the v4 documentation.  It would save a lot of time.


More generally, if there were some statement regarding the up-to-dated-ness of the documented schema, that would be great.  In particular, I would hope that the documentation would be autogenereated whenever a change goes live, but that might be easier said than done.

Community Manager
Message 4 of 5

Re: Create repository via GraphQL

Hi @NathanZook,


As we're always trying to make GitHub friendlier and more approachable, I appreciate that recommendation. I will pass that on to our documentation team for consideration.



Ground Controller Lvl 1
Message 5 of 5

Re: Create repository via GraphQL

@that-pat when will it be possible to create a repository via the v4 API?