I'm trying to create repositories in an organization that I'm part of via the API. Everything up to this point has worked: getting repositories, org info, user info, etc. but I can't get creation to work. I have the ability to do it myself and as far as I can tell, the personal access token I've generated has the permission scope to do it. I'm not sure where I should go from here; registering an OAuth app seems like overkill since I wanted to make a local script and the app requires a callback URI and the like.
Solved! Solved! Go to Solution.
You're certainly not the worst! I think everyone makes mistakes like that from time to time. I mean, who hasn't debugged code for a couple of hours just to realize they missed a semicolon somewhere? That's just as much of a mistake and it happens to the best of us.
So don't be so hard on yourself. :)
@kuzi117 it's hard to answer your question without knowing exactly how you formatted the API call. Is your code available somewhere public that we can take a look at it? Assuming that you are using the Add or update organization membership endpoint, it is entirely possible, depending on how you formatted your API call, for this to be the expected behavior.