actions
Create an organization variable
Creates 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 tokens and personal access tokens (classic) need theadmin:org scope to use this endpoint. If the repository is private, OAuth tokens and personal access tokens (classic) need the repo scope to use this endpoint.
post/orgs/{org}/actions/variables
Request
- Base URL: https://api.github.com
- URL: https://api.github.com/orgs/{org}/actions/variables
- Auth: none declared
Path parameters
orgstring required
The organization name. The name is not case sensitive.
Request body
Response
Response when creating a variable
Empty Object required
An object without any properties.
Changes
No recorded changes to this operation across all 23 revisions of this API.