apicheats.dev Cheat sheet Raw .md
PATCH

Try PATCH /orgs/{org}/actions/variables/{name} — GitHub API

GitHub playground

Update an organization variable

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

4 body fields
  • name · optional · string — The name of the variable.
  • value · optional · string — The value of the variable.
  • visibility · optional · string — The type of repositories in the organization that can access the variable. `selected` means only the repositories specified by `selected_repository_ids` can access the variable.
  • selected_repository_ids · optional · integer[] — An array of repository ids that can access the organization variable. You can only provide a list of repository ids when the `visibility` is set to `selected`.