Skip to content

Adding Branch Protection Rules through endpoint API #24762

Discussion options

You must be logged in to vote

Hey @seanmalloy-crest how are you going, aside from these API troubles? Well, I hope!

You mentioned:

I am using a Github Token that should have admin permission to that repository.

But in your example curl, there was no token being applied to your calls, that I could see. At least, not from your screenshot above. Our REST Authentication docs are here:

docs.github.com

Getting started with the REST API - GitHub Docs

//docs.github.com/en/rest/guides/getting-started-with-the-rest-api

Because a 404 not found could easily mean permissions issues and if you aren’t passing a token with valid permission, would explain what you see.

Let us know if you continue to have trouble after properly …

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment