{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Creates a new self-hosted runner group for an organization.\n\nOAuth 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."}},"required":["org"],"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 limit access to private repositories.","type":"string","enum":["selected","all","private"],"default":"all"},"selected_repository_ids":{"description":"List of repository IDs that can access the runner group.","type":"array","items":{"type":"integer","description":"Unique identifier of the repository."}},"runners":{"description":"List of runner IDs to add to the runner group.","type":"array","items":{"type":"integer","description":"Unique identifier of the runner."}},"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"}},"required":["name"],"examples":[{"name":"Expensive hardware runners","visibility":"selected","selected_repository_ids":[32,91],"runners":[9,2]}]}},"required":["path","body"],"additionalProperties":false},"name":"Create a self-hosted runner group for an organization","id":"github.actions.create-self-hosted-runner-group-for-org","example":{"path":{"org":"example"},"body":{"name":"Expensive hardware runners","visibility":"selected","selected_repository_ids":[32,91],"runners":[9,2]}},"maxRequests":1,"summary":false}}