actions

Update an organization variable

Updates an organization variable that you can reference in a GitHub Actions workflow.

You must authenticate using an access token with the admin:org scope to use this endpoint. If the repository is private, you must use an access token with the repo scope. GitHub Apps must have the organization_actions_variables:write organization permission to use this endpoint. Authenticated users must have collaborator access to a repository to create, update, or read variables.

patch/orgs/{org}/actions/variables/{name}

Path parameters

orgstring required

The organization name. The name is not case sensitive.

namestring required

The name of the variable.

Request body

namestring

The name of the variable.

valuestring

The value of the variable.

visibility'all' | 'private' | 'selected'

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_idsinteger[]

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.

Response

Response

Changes