Update an organization variable
Updates an organization variable that you can reference in a GitHub Actions workflow.
Authenticated users must have collaborator access to a repository to create, update, or read variables.
OAuth app tokens and personal access tokens (classic) need the admin:org scope to use this endpoint. If the repository is private, the repo scope is also required.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”The organization name. The name is not case sensitive.
The name of the variable.
Request Body required
Section titled “ Request Body required ”object
The name of the variable.
The value of the variable.
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.
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.
Examples
{ "name": "USERNAME", "value": "octocat", "visibility": "selected", "selected_repository_ids": [ 1296269, 1296280 ]}Responses
Section titled “ Responses ”Response