Update status check protection
Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. Updating required status checks requires admin or owner permissions to the repository and branch protection to be enabled.
/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks- Source
github-v3-rest.json- Revision
f5f067c1e6f6- Active snapshot
85e53e3d0d65
Request
Path Parameters
- owner stringrequired
- repo stringrequired
- branch stringrequired
The name of the branch.
Body Params
optionalThe list of status checks to require in order to merge into this branch
Require branches to be up to date before merging.
Responses
Response
[
"continuous-integration/travis-ci"
]https://api.github.com/repos/octocat/Hello-World/branches/master/protection/required_status_checks/contextsExample: true
https://api.github.com/repos/octocat/Hello-World/branches/master/protection/required_status_checksResource not found
Validation failed