{
  "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."
      }
    },
    "network_configuration_id": {
      "description": "The identifier of a hosted compute network configuration.",
      "type": "string"
    }
  },
  "required": [
    "name"
  ],
  "$schema": "https://json-schema.org/draft/2019-09/schema"
}