GitHub Api - Unable to Get and Update the branch protection

this is my URL -

My reponse -


message: “Not Found”,

documentation_url: “”}


And i have enabled the protection properties for the branch in my repository

Hi @arun0910,

Is “5.6” the name of your branch? I’m assuming that you’re running this API call while authenticated and that you’re using a token that has the admin scope, correct?


Yeah. i figured it out. Now i am able to access it.