gh: Not Found (HTTP 404) "message": "Not Found", "documentation_url": "https://docs.github.com/rest/collaborators/collaborators#add-a-repository-collaborator #34623
Unanswered
Shreenivasayg
asked this question in
API and Webhooks
Replies: 2 comments 9 replies
-
@Shreenivasayg - do you have access to https://github.com/rohit/services repo ? It is |
Beta Was this translation helpful? Give feedback.
7 replies
-
Services doesn't seem to exist! Unless it's a private repo. Minus that looks all good |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to add collaborators through GitHub CLI. Done with gh auth login. I am using following cli in terminal. i have admin privilege's over this private repo.
gh api
--method PUT
-H "Accept: application/vnd.github+json"
/repos/OWNER/REPO/collaborators/USERNAME
-f permission='triage'
(Adding repo ownername, repo name, and username as required) example
gh api
--method PUT
-H "Accept: application/vnd.github+json"
/repos/rohit/services/collaborators/sravanthi
-f permission='triage'
Output
Error
{
"message": "Not Found",
"documentation_url": "https://docs.github.com/rest/collaborators/collaborators#add-a-repository-collaborator"
}
gh: Not Found (HTTP 404)
Beta Was this translation helpful? Give feedback.
All reactions