GitHub: Agents schemas
4 GitHub schemas with complete fields and constraints.
← Agents operations · All schemas
Create an organization variable — agents agents Create Org Variable — request body — body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
name | string | Required within parent | The name of the variable. |
selected_repository_ids | array | Optional | 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`. |
selected_repository_ids[] | integer | Each item | |
value | string | Required within parent | The value of the variable. |
visibility | string | Required within parent | 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. One of: all, private, selected |
Get an organization secret — agents agents Get Org Secret — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Secrets for GitHub Actions for an organization. |
created_at | string | Required within parent | Format: date-time |
name | string | Required within parent | The name of the secret. |
selected_repositories_url | string | Optional | Format: uri |
updated_at | string | Required within parent | Format: date-time |
visibility | string | Required within parent | Visibility of a secret Known values: all, private, selected |
Get an organization variable — agents agents Get Org Variable — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Organization variable for GitHub Actions. |
created_at | string | Required within parent | The date and time at which the variable was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ. Format: date-time |
name | string | Required within parent | The name of the variable. |
selected_repositories_url | string | Optional | Format: uri |
updated_at | string | Required within parent | The date and time at which the variable was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ. Format: date-time |
value | string | Required within parent | The value of the variable. |
visibility | string | Required within parent | Visibility of a variable Known values: all, private, selected |
Update an organization variable — agents agents Update Org Variable — request body — body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
name | string | Optional | The name of the variable. |
selected_repository_ids | array | Optional | 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`. |
selected_repository_ids[] | integer | Each item | |
value | string | Optional | The value of the variable. |
visibility | string | Optional | 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. One of: all, private, selected |