agents
Create an organization variable
Changed onCreates an organization agent 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 the admin: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}/agents/variables
Request
- Base URL: https://api.github.com
- URL: https://api.github.com/orgs/{org}/agents/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
- info
endpoint added
- info