apicheats.dev Cheat sheet Raw .md
PATCH

Try PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks — GitHub API

GitHub playground

Update status check protection

Credentials

Kept in this tab only. Requests go through apicheats.dev's same-origin proxy straight to api.github.com; the proxy stores and logs nothing about them.

Headers

Path

Body application/json

3 body fields
  • strict · optional · boolean — Require branches to be up to date before merging.
  • contexts · optional · string[] — **Closing down notice**: The list of status checks to require in order to merge into this branch. If any of these checks have recently been set by a particular GitHub App, they will be required to come from that app in future for the branch to merge. Use `checks` instead of `contexts` for more fine-grained control.
  • checks · optional · object[] — The list of status checks to require in order to merge into this branch.