apicheats.dev Cheat sheet Raw .md
POST

Try POST /repos/{owner}/{repo}/actions/runs/{run_id}/deployment_protection_rule — GitHub API

GitHub playground

Review custom deployment protection rules for a workflow run

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

2 body fields
  • environment_name · required · string — The name of the environment to approve or reject.
  • comment · required · string — Comment associated with the pending deployment protection rule. **Required when state is not provided.**