GitHub Api - Unable to Get and Update the branch protection

this is my URL - https://api.github.com/repos/arun0910/TestRepo/branches/5.6/protection

My reponse -

{

message: “Not Found”,

documentation_url: “https://developer.github.com/v3/repos/branches/#get-branch-protection”}

}

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?

Thanks!

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