apicheats.dev Cheat sheet Raw .md
POST

Try POST /orgs/{org}/actions/variables — GitHub API

GitHub playground

Create 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 · required · string — The name of the variable.
  • value · required · string — The value of the variable.
  • visibility · required · 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`.