{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Updates the `name` and `visibility` of a self-hosted runner group in an organization.\n\nOAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.","properties":{"path":{"type":"object","properties":{"org":{"type":"string","description":"The organization name. The name is not case sensitive."},"runner_group_id":{"type":"integer","description":"Unique identifier of the self-hosted runner group."}},"required":["org","runner_group_id"],"additionalProperties":false},"body":{"type":"object","properties":{"name":{"description":"Name of the runner group.","type":"string"},"visibility":{"description":"Visibility of a runner group. You can select all repositories, select individual repositories, or all private repositories.","type":"string","enum":["selected","all","private"]},"allows_public_repositories":{"description":"Whether the runner group can be used by `public` repositories.","type":"boolean","default":false},"restricted_to_workflows":{"description":"If `true`, the runner group will be restricted to running only the workflows specified in the `selected_workflows` array.","type":"boolean","default":false},"selected_workflows":{"description":"List of workflows the runner group should be allowed to run. This setting will be ignored unless `restricted_to_workflows` is set to `true`.","type":"array","items":{"type":"string","description":"Name of workflow the runner group should be allowed to run. Note that a ref, tag, or long SHA is required.","examples":["octo-org/octo-repo/.github/workflows/deploy.yaml@main"]}},"network_configuration_id":{"description":"The identifier of a hosted compute network configuration.","type":["string","null"]}},"required":["name"],"examples":[{"name":"Expensive hardware runners","visibility":"selected"}]}},"required":["path","body"],"additionalProperties":false},"name":"Update a self-hosted runner group for an organization","id":"github.actions.update-self-hosted-runner-group-for-org","example":{"path":{"org":"example","runner_group_id":1},"body":{"name":"Expensive hardware runners","visibility":"selected"}},"maxRequests":1,"summary":false}}