{"meta":{"title":"Puntos de conexión de la API de REST para organizaciones de Codespaces","intro":"Usa la API de REST para administrar los codespaces de los miembros de la organización.","product":"REST API","breadcrumbs":[{"href":"/es/rest","title":"REST API"},{"href":"/es/rest/codespaces","title":"Codespaces"},{"href":"/es/rest/codespaces/organizations","title":"Las organizaciones"}],"documentType":"article"},"body":"# Puntos de conexión de la API de REST para organizaciones de Codespaces\n\nUsa la API de REST para administrar los codespaces de los miembros de la organización.\n\n## Acerca de las organizaciones de Codespaces\n\nPuedes administrar los Codespaces facturados a tu organización. Para más información, consulta [Codespaces documentación](/es/codespaces).\n\n> \\[!NOTE]\n> Most endpoints use `Authorization: Bearer <YOUR-TOKEN>` and `Accept: application/vnd.github+json` headers, plus `X-GitHub-Api-Version: 2026-03-10`. Curl examples below omit these standard headers for brevity.\n\n## List codespaces for the organization\n\n```\nGET /orgs/{org}/codespaces\n```\n\nLists the codespaces associated to a specified organization.\nOAuth app tokens and personal access tokens (classic) need the admin:org scope to use this endpoint.\n\n### Parameters\n\n#### Headers\n\n* **`accept`** (string)\n  Setting to `application/vnd.github+json` is recommended.\n\n#### Path and query parameters\n\n* **`per_page`** (integer)\n  The number of results per page (max 100). For more information, see \"Using pagination in the REST API.\"\n  Default: `30`\n\n* **`page`** (integer)\n  The page number of the results to fetch. For more information, see \"Using pagination in the REST API.\"\n  Default: `1`\n\n* **`org`** (string) (required)\n  The organization name. The name is not case sensitive.\n\n### HTTP response status codes\n\n* **200** - OK\n\n* **304** - Not modified\n\n* **401** - Requires authentication\n\n* **403** - Forbidden\n\n* **404** - Resource not found\n\n* **500** - Internal Error\n\n### Code examples\n\n#### Example\n\n**Request:**\n\n```curl\ncurl -L \\\n  -X GET \\\n  https://api.github.com/orgs/ORG/codespaces\n```\n\n**Response schema (Status: 200):**\n\n* `total_count`: required, integer\n* `codespaces`: required, array of `Codespace`:\n  * `id`: required, integer, format: int64\n  * `name`: required, string\n  * `display_name`: string or null\n  * `environment_id`: required, string or null\n  * `owner`: required, `Simple User`:\n    * `name`: string or null\n    * `email`: string or null\n    * `login`: required, string\n    * `id`: required, integer, format: int64\n    * `node_id`: required, string\n    * `avatar_url`: required, string, format: uri\n    * `gravatar_id`: required, string or null\n    * `url`: required, string, format: uri\n    * `html_url`: required, string, format: uri\n    * `followers_url`: required, string, format: uri\n    * `following_url`: required, string\n    * `gists_url`: required, string\n    * `starred_url`: required, string\n    * `subscriptions_url`: required, string, format: uri\n    * `organizations_url`: required, string, format: uri\n    * `repos_url`: required, string, format: uri\n    * `events_url`: required, string\n    * `received_events_url`: required, string, format: uri\n    * `type`: required, string\n    * `site_admin`: required, boolean\n    * `starred_at`: string\n    * `user_view_type`: string\n  * `billable_owner`: required, `Simple User`:\n    * `name`: string or null\n    * `email`: string or null\n    * `login`: required, string\n    * `id`: required, integer, format: int64\n    * `node_id`: required, string\n    * `avatar_url`: required, string, format: uri\n    * `gravatar_id`: required, string or null\n    * `url`: required, string, format: uri\n    * `html_url`: required, string, format: uri\n    * `followers_url`: required, string, format: uri\n    * `following_url`: required, string\n    * `gists_url`: required, string\n    * `starred_url`: required, string\n    * `subscriptions_url`: required, string, format: uri\n    * `organizations_url`: required, string, format: uri\n    * `repos_url`: required, string, format: uri\n    * `events_url`: required, string\n    * `received_events_url`: required, string, format: uri\n    * `type`: required, string\n    * `site_admin`: required, boolean\n    * `starred_at`: string\n    * `user_view_type`: string\n  * `repository`: required, `Minimal Repository`:\n    * `id`: required, integer, format: int64\n    * `node_id`: required, string\n    * `name`: required, string\n    * `full_name`: required, string\n    * `owner`: required, `Simple User`:\n      * `name`: string or null\n      * `email`: string or null\n      * `login`: required, string\n      * `id`: required, integer, format: int64\n      * `node_id`: required, string\n      * `avatar_url`: required, string, format: uri\n      * `gravatar_id`: required, string or null\n      * `url`: required, string, format: uri\n      * `html_url`: required, string, format: uri\n      * `followers_url`: required, string, format: uri\n      * `following_url`: required, string\n      * `gists_url`: required, string\n      * `starred_url`: required, string\n      * `subscriptions_url`: required, string, format: uri\n      * `organizations_url`: required, string, format: uri\n      * `repos_url`: required, string, format: uri\n      * `events_url`: required, string\n      * `received_events_url`: required, string, format: uri\n      * `type`: required, string\n      * `site_admin`: required, boolean\n      * `starred_at`: string\n      * `user_view_type`: string\n    * `private`: required, boolean\n    * `html_url`: required, string, format: uri\n    * `description`: required, string or null\n    * `fork`: required, boolean\n    * `url`: required, string, format: uri\n    * `archive_url`: required, string\n    * `assignees_url`: required, string\n    * `blobs_url`: required, string\n    * `branches_url`: required, string\n    * `collaborators_url`: required, string\n    * `comments_url`: required, string\n    * `commits_url`: required, string\n    * `compare_url`: required, string\n    * `contents_url`: required, string\n    * `contributors_url`: required, string, format: uri\n    * `deployments_url`: required, string, format: uri\n    * `downloads_url`: required, string, format: uri\n    * `events_url`: required, string, format: uri\n    * `forks_url`: required, string, format: uri\n    * `git_commits_url`: required, string\n    * `git_refs_url`: required, string\n    * `git_tags_url`: required, string\n    * `git_url`: string\n    * `issue_comment_url`: required, string\n    * `issue_events_url`: required, string\n    * `issues_url`: required, string\n    * `keys_url`: required, string\n    * `labels_url`: required, string\n    * `languages_url`: required, string, format: uri\n    * `merges_url`: required, string, format: uri\n    * `milestones_url`: required, string\n    * `notifications_url`: required, string\n    * `pulls_url`: required, string\n    * `releases_url`: required, string\n    * `ssh_url`: string\n    * `stargazers_url`: required, string, format: uri\n    * `statuses_url`: required, string\n    * `subscribers_url`: required, string, format: uri\n    * `subscription_url`: required, string, format: uri\n    * `tags_url`: required, string, format: uri\n    * `teams_url`: required, string, format: uri\n    * `trees_url`: required, string\n    * `clone_url`: string\n    * `mirror_url`: string or null\n    * `hooks_url`: required, string, format: uri\n    * `svn_url`: string\n    * `homepage`: string or null\n    * `language`: string or null\n    * `forks_count`: integer\n    * `stargazers_count`: integer\n    * `watchers_count`: integer\n    * `size`: integer\n    * `default_branch`: string\n    * `open_issues_count`: integer\n    * `is_template`: boolean\n    * `topics`: array of string\n    * `has_issues`: boolean\n    * `has_projects`: boolean\n    * `has_wiki`: boolean\n    * `has_pages`: boolean\n    * `has_discussions`: boolean\n    * `has_pull_requests`: boolean\n    * `pull_request_creation_policy`: string, enum: `all`, `collaborators_only`\n    * `archived`: boolean\n    * `disabled`: boolean\n    * `visibility`: string\n    * `pushed_at`: string or null, format: date-time\n    * `created_at`: string or null, format: date-time\n    * `updated_at`: string or null, format: date-time\n    * `permissions`: object:\n      * `admin`: boolean\n      * `maintain`: boolean\n      * `push`: boolean\n      * `triage`: boolean\n      * `pull`: boolean\n    * `role_name`: string\n    * `temp_clone_token`: string\n    * `delete_branch_on_merge`: boolean\n    * `subscribers_count`: integer\n    * `network_count`: integer\n    * `code_of_conduct`: `Code Of Conduct`:\n      * `key`: required, string\n      * `name`: required, string\n      * `url`: required, string, format: uri\n      * `body`: string\n      * `html_url`: required, string or null, format: uri\n    * `license`: object or null:\n      * `key`: string\n      * `name`: string\n      * `spdx_id`: string\n      * `url`: string or null\n      * `node_id`: string\n    * `forks`: integer\n    * `open_issues`: integer\n    * `watchers`: integer\n    * `allow_forking`: boolean\n    * `web_commit_signoff_required`: boolean\n    * `security_and_analysis`: object or null:\n      * `advanced_security`: object:\n        * `status`: string, enum: `enabled`, `disabled`\n      * `code_security`: object:\n        * `status`: string, enum: `enabled`, `disabled`\n      * `dependabot_security_updates`: object:\n        * `status`: string, enum: `enabled`, `disabled`\n      * `secret_scanning`: object:\n        * `status`: string, enum: `enabled`, `disabled`\n      * `secret_scanning_push_protection`: object:\n        * `status`: string, enum: `enabled`, `disabled`\n      * `secret_scanning_non_provider_patterns`: object:\n        * `status`: string, enum: `enabled`, `disabled`\n      * `secret_scanning_ai_detection`: object:\n        * `status`: string, enum: `enabled`, `disabled`\n      * `secret_scanning_delegated_alert_dismissal`: object:\n        * `status`: string, enum: `enabled`, `disabled`\n      * `secret_scanning_delegated_bypass`: object:\n        * `status`: string, enum: `enabled`, `disabled`\n      * `secret_scanning_delegated_bypass_options`: object:\n        * `reviewers`: array of object\n    * `custom_properties`: object, additional properties allowed\n  * `machine`: required, any of:\n    * **null**\n    * **Codespace machine**\n      * `name`: required, string\n      * `display_name`: required, string\n      * `operating_system`: required, string\n      * `storage_in_bytes`: required, integer\n      * `memory_in_bytes`: required, integer\n      * `cpus`: required, integer\n      * `prebuild_availability`: required, string or null, enum: `none`, `ready`, `in_progress`, `null`\n  * `devcontainer_path`: string or null\n  * `prebuild`: required, boolean or null\n  * `created_at`: required, string, format: date-time\n  * `updated_at`: required, string, format: date-time\n  * `last_used_at`: required, string, format: date-time\n  * `state`: required, string, enum: `Unknown`, `Created`, `Queued`, `Provisioning`, `Available`, `Awaiting`, `Unavailable`, `Deleted`, `Moved`, `Shutdown`, `Archived`, `Starting`, `ShuttingDown`, `Failed`, `Exporting`, `Updating`, `Rebuilding`\n  * `url`: required, string, format: uri\n  * `git_status`: required, object:\n    * `ahead`: integer\n    * `behind`: integer\n    * `has_unpushed_changes`: boolean\n    * `has_uncommitted_changes`: boolean\n    * `ref`: string\n  * `location`: required, string, enum: `EastUs`, `SouthEastAsia`, `WestEurope`, `WestUs2`\n  * `idle_timeout_minutes`: required, integer or null\n  * `web_url`: required, string, format: uri\n  * `machines_url`: required, string, format: uri\n  * `start_url`: required, string, format: uri\n  * `stop_url`: required, string, format: uri\n  * `publish_url`: string or null, format: uri\n  * `pulls_url`: required, string or null, format: uri\n  * `recent_folders`: required, array of string\n  * `runtime_constraints`: object:\n    * `allowed_port_privacy_settings`: array of string or null\n  * `pending_operation`: boolean or null\n  * `pending_operation_disabled_reason`: string or null\n  * `idle_timeout_notice`: string or null\n  * `retention_period_minutes`: integer or null\n  * `retention_expires_at`: string or null, format: date-time\n  * `last_known_stop_notice`: string or null\n\n## Manage access control for organization codespaces\n\n```\nPUT /orgs/{org}/codespaces/access\n```\n\nSets which users can access codespaces in an organization. This is synonymous with granting or revoking codespaces access permissions for users according to the visibility.\nOAuth app tokens and personal access tokens (classic) need the admin:org scope to use this endpoint.\n\n### Parameters\n\n#### Headers\n\n* **`accept`** (string)\n  Setting to `application/vnd.github+json` is recommended.\n\n#### Path and query parameters\n\n* **`org`** (string) (required)\n  The organization name. The name is not case sensitive.\n\n#### Body parameters\n\n* **`visibility`** (string) (required)\n  Which users can access codespaces in the organization. disabled means that no users can access codespaces in the organization.\n  Can be one of: `disabled`, `selected_members`, `all_members`, `all_members_and_outside_collaborators`\n\n* **`selected_usernames`** (array of strings)\n  The usernames of the organization members who should have access to codespaces in the organization. Required when visibility is selected\\_members. The provided list of usernames will replace any existing value.\n\n### HTTP response status codes\n\n* **204** - Response when successfully modifying permissions.\n\n* **304** - Not modified\n\n* **400** - Users are neither members nor collaborators of this organization.\n\n* **404** - Resource not found\n\n* **422** - Validation failed, or the endpoint has been spammed.\n\n* **500** - Internal Error\n\n### Code examples\n\n#### Example\n\n**Request:**\n\n```curl\ncurl -L \\\n  -X PUT \\\n  https://api.github.com/orgs/ORG/codespaces/access \\\n  -d '{\n  \"visibility\": \"selected_members\",\n  \"selected_usernames\": [\n    \"johnDoe\",\n    \"atomIO\"\n  ]\n}'\n```\n\n**Response schema (Status: 204):**\n\n## Add users to Codespaces access for an organization\n\n```\nPOST /orgs/{org}/codespaces/access/selected_users\n```\n\nCodespaces for the specified users will be billed to the organization.\nTo use this endpoint, the access settings for the organization must be set to selected\\_members.\nFor information on how to change this setting, see \"Manage access control for organization codespaces.\"\nOAuth app tokens and personal access tokens (classic) need the admin:org scope to use this endpoint.\n\n### Parameters\n\n#### Headers\n\n* **`accept`** (string)\n  Setting to `application/vnd.github+json` is recommended.\n\n#### Path and query parameters\n\n* **`org`** (string) (required)\n  The organization name. The name is not case sensitive.\n\n#### Body parameters\n\n* **`selected_usernames`** (array of strings) (required)\n  The usernames of the organization members and outside collaborators whose codespaces should be billed to the organization.\n\n### HTTP response status codes\n\n* **204** - Response when successfully modifying permissions.\n\n* **304** - Not modified\n\n* **400** - Users are neither members nor collaborators of this organization.\n\n* **404** - Resource not found\n\n* **422** - Validation failed, or the endpoint has been spammed.\n\n* **500** - Internal Error\n\n### Code examples\n\n#### Example\n\n**Request:**\n\n```curl\ncurl -L \\\n  -X POST \\\n  https://api.github.com/orgs/ORG/codespaces/access/selected_users \\\n  -d '{\n  \"selected_usernames\": [\n    \"johnDoe\",\n    \"atomIO\"\n  ]\n}'\n```\n\n**Response schema (Status: 204):**\n\n## Remove users from Codespaces access for an organization\n\n```\nDELETE /orgs/{org}/codespaces/access/selected_users\n```\n\nCodespaces for the specified users will no longer be billed to the organization.\nTo use this endpoint, the access settings for the organization must be set to selected\\_members.\nFor information on how to change this setting, see \"Manage access control for organization codespaces.\"\nOAuth app tokens and personal access tokens (classic) need the admin:org scope to use this endpoint.\n\n### Parameters\n\n#### Headers\n\n* **`accept`** (string)\n  Setting to `application/vnd.github+json` is recommended.\n\n#### Path and query parameters\n\n* **`org`** (string) (required)\n  The organization name. The name is not case sensitive.\n\n#### Body parameters\n\n* **`selected_usernames`** (array of strings) (required)\n  The usernames of the organization members and outside collaborators whose codespaces should not be billed to the organization.\n\n### HTTP response status codes\n\n* **204** - Response when successfully modifying permissions.\n\n* **304** - Not modified\n\n* **400** - Users are neither members nor collaborators of this organization.\n\n* **404** - Resource not found\n\n* **422** - Validation failed, or the endpoint has been spammed.\n\n* **500** - Internal Error\n\n### Code examples\n\n#### Example\n\n**Request:**\n\n```curl\ncurl -L \\\n  -X DELETE \\\n  https://api.github.com/orgs/ORG/codespaces/access/selected_users \\\n  -d '{\n  \"selected_usernames\": [\n    \"johnDoe\",\n    \"atomIO\"\n  ]\n}'\n```\n\n**Response schema (Status: 204):**\n\n## List codespaces for a user in organization\n\n```\nGET /orgs/{org}/members/{username}/codespaces\n```\n\nLists the codespaces that a member of an organization has for repositories in that organization.\nOAuth app tokens and personal access tokens (classic) need the admin:org scope to use this endpoint.\n\n### Parameters\n\n#### Headers\n\n* **`accept`** (string)\n  Setting to `application/vnd.github+json` is recommended.\n\n#### Path and query parameters\n\n* **`per_page`** (integer)\n  The number of results per page (max 100). For more information, see \"Using pagination in the REST API.\"\n  Default: `30`\n\n* **`page`** (integer)\n  The page number of the results to fetch. For more information, see \"Using pagination in the REST API.\"\n  Default: `1`\n\n* **`org`** (string) (required)\n  The organization name. The name is not case sensitive.\n\n* **`username`** (string) (required)\n  The handle for the GitHub user account.\n\n### HTTP response status codes\n\n* **200** - OK\n\n* **304** - Not modified\n\n* **401** - Requires authentication\n\n* **403** - Forbidden\n\n* **404** - Resource not found\n\n* **500** - Internal Error\n\n### Code examples\n\n#### Example\n\n**Request:**\n\n```curl\ncurl -L \\\n  -X GET \\\n  https://api.github.com/orgs/ORG/members/USERNAME/codespaces\n```\n\n**Response schema (Status: 200):**\n\nSame response schema as [List codespaces for the organization](#list-codespaces-for-the-organization).\n\n## Delete a codespace from the organization\n\n```\nDELETE /orgs/{org}/members/{username}/codespaces/{codespace_name}\n```\n\nDeletes a user's codespace.\nOAuth app tokens and personal access tokens (classic) need the admin:org scope to use this endpoint.\n\n### Parameters\n\n#### Headers\n\n* **`accept`** (string)\n  Setting to `application/vnd.github+json` is recommended.\n\n#### Path and query parameters\n\n* **`org`** (string) (required)\n  The organization name. The name is not case sensitive.\n\n* **`username`** (string) (required)\n  The handle for the GitHub user account.\n\n* **`codespace_name`** (string) (required)\n  The name of the codespace.\n\n### HTTP response status codes\n\n* **202** - Accepted\n\n* **304** - Not modified\n\n* **401** - Requires authentication\n\n* **403** - Forbidden\n\n* **404** - Resource not found\n\n* **500** - Internal Error\n\n### Code examples\n\n#### Example\n\n**Request:**\n\n```curl\ncurl -L \\\n  -X DELETE \\\n  https://api.github.com/orgs/ORG/members/USERNAME/codespaces/CODESPACE_NAME\n```\n\n**Response schema (Status: 202):**\n\nobject\n\n## Stop a codespace for an organization user\n\n```\nPOST /orgs/{org}/members/{username}/codespaces/{codespace_name}/stop\n```\n\nStops a user's codespace.\nOAuth app tokens and personal access tokens (classic) need the admin:org scope to use this endpoint.\n\n### Parameters\n\n#### Headers\n\n* **`accept`** (string)\n  Setting to `application/vnd.github+json` is recommended.\n\n#### Path and query parameters\n\n* **`org`** (string) (required)\n  The organization name. The name is not case sensitive.\n\n* **`username`** (string) (required)\n  The handle for the GitHub user account.\n\n* **`codespace_name`** (string) (required)\n  The name of the codespace.\n\n### HTTP response status codes\n\n* **200** - OK\n\n* **304** - Not modified\n\n* **401** - Requires authentication\n\n* **403** - Forbidden\n\n* **404** - Resource not found\n\n* **500** - Internal Error\n\n### Code examples\n\n#### Example\n\n**Request:**\n\n```curl\ncurl -L \\\n  -X POST \\\n  https://api.github.com/orgs/ORG/members/USERNAME/codespaces/CODESPACE_NAME/stop\n```\n\n**Response schema (Status: 200):**\n\n* `id`: required, integer, format: int64\n* `name`: required, string\n* `display_name`: string or null\n* `environment_id`: required, string or null\n* `owner`: required, `Simple User`:\n  * `name`: string or null\n  * `email`: string or null\n  * `login`: required, string\n  * `id`: required, integer, format: int64\n  * `node_id`: required, string\n  * `avatar_url`: required, string, format: uri\n  * `gravatar_id`: required, string or null\n  * `url`: required, string, format: uri\n  * `html_url`: required, string, format: uri\n  * `followers_url`: required, string, format: uri\n  * `following_url`: required, string\n  * `gists_url`: required, string\n  * `starred_url`: required, string\n  * `subscriptions_url`: required, string, format: uri\n  * `organizations_url`: required, string, format: uri\n  * `repos_url`: required, string, format: uri\n  * `events_url`: required, string\n  * `received_events_url`: required, string, format: uri\n  * `type`: required, string\n  * `site_admin`: required, boolean\n  * `starred_at`: string\n  * `user_view_type`: string\n* `billable_owner`: required, `Simple User`:\n  * `name`: string or null\n  * `email`: string or null\n  * `login`: required, string\n  * `id`: required, integer, format: int64\n  * `node_id`: required, string\n  * `avatar_url`: required, string, format: uri\n  * `gravatar_id`: required, string or null\n  * `url`: required, string, format: uri\n  * `html_url`: required, string, format: uri\n  * `followers_url`: required, string, format: uri\n  * `following_url`: required, string\n  * `gists_url`: required, string\n  * `starred_url`: required, string\n  * `subscriptions_url`: required, string, format: uri\n  * `organizations_url`: required, string, format: uri\n  * `repos_url`: required, string, format: uri\n  * `events_url`: required, string\n  * `received_events_url`: required, string, format: uri\n  * `type`: required, string\n  * `site_admin`: required, boolean\n  * `starred_at`: string\n  * `user_view_type`: string\n* `repository`: required, `Minimal Repository`:\n  * `id`: required, integer, format: int64\n  * `node_id`: required, string\n  * `name`: required, string\n  * `full_name`: required, string\n  * `owner`: required, `Simple User`:\n    * `name`: string or null\n    * `email`: string or null\n    * `login`: required, string\n    * `id`: required, integer, format: int64\n    * `node_id`: required, string\n    * `avatar_url`: required, string, format: uri\n    * `gravatar_id`: required, string or null\n    * `url`: required, string, format: uri\n    * `html_url`: required, string, format: uri\n    * `followers_url`: required, string, format: uri\n    * `following_url`: required, string\n    * `gists_url`: required, string\n    * `starred_url`: required, string\n    * `subscriptions_url`: required, string, format: uri\n    * `organizations_url`: required, string, format: uri\n    * `repos_url`: required, string, format: uri\n    * `events_url`: required, string\n    * `received_events_url`: required, string, format: uri\n    * `type`: required, string\n    * `site_admin`: required, boolean\n    * `starred_at`: string\n    * `user_view_type`: string\n  * `private`: required, boolean\n  * `html_url`: required, string, format: uri\n  * `description`: required, string or null\n  * `fork`: required, boolean\n  * `url`: required, string, format: uri\n  * `archive_url`: required, string\n  * `assignees_url`: required, string\n  * `blobs_url`: required, string\n  * `branches_url`: required, string\n  * `collaborators_url`: required, string\n  * `comments_url`: required, string\n  * `commits_url`: required, string\n  * `compare_url`: required, string\n  * `contents_url`: required, string\n  * `contributors_url`: required, string, format: uri\n  * `deployments_url`: required, string, format: uri\n  * `downloads_url`: required, string, format: uri\n  * `events_url`: required, string, format: uri\n  * `forks_url`: required, string, format: uri\n  * `git_commits_url`: required, string\n  * `git_refs_url`: required, string\n  * `git_tags_url`: required, string\n  * `git_url`: string\n  * `issue_comment_url`: required, string\n  * `issue_events_url`: required, string\n  * `issues_url`: required, string\n  * `keys_url`: required, string\n  * `labels_url`: required, string\n  * `languages_url`: required, string, format: uri\n  * `merges_url`: required, string, format: uri\n  * `milestones_url`: required, string\n  * `notifications_url`: required, string\n  * `pulls_url`: required, string\n  * `releases_url`: required, string\n  * `ssh_url`: string\n  * `stargazers_url`: required, string, format: uri\n  * `statuses_url`: required, string\n  * `subscribers_url`: required, string, format: uri\n  * `subscription_url`: required, string, format: uri\n  * `tags_url`: required, string, format: uri\n  * `teams_url`: required, string, format: uri\n  * `trees_url`: required, string\n  * `clone_url`: string\n  * `mirror_url`: string or null\n  * `hooks_url`: required, string, format: uri\n  * `svn_url`: string\n  * `homepage`: string or null\n  * `language`: string or null\n  * `forks_count`: integer\n  * `stargazers_count`: integer\n  * `watchers_count`: integer\n  * `size`: integer\n  * `default_branch`: string\n  * `open_issues_count`: integer\n  * `is_template`: boolean\n  * `topics`: array of string\n  * `has_issues`: boolean\n  * `has_projects`: boolean\n  * `has_wiki`: boolean\n  * `has_pages`: boolean\n  * `has_discussions`: boolean\n  * `has_pull_requests`: boolean\n  * `pull_request_creation_policy`: string, enum: `all`, `collaborators_only`\n  * `archived`: boolean\n  * `disabled`: boolean\n  * `visibility`: string\n  * `pushed_at`: string or null, format: date-time\n  * `created_at`: string or null, format: date-time\n  * `updated_at`: string or null, format: date-time\n  * `permissions`: object:\n    * `admin`: boolean\n    * `maintain`: boolean\n    * `push`: boolean\n    * `triage`: boolean\n    * `pull`: boolean\n  * `role_name`: string\n  * `temp_clone_token`: string\n  * `delete_branch_on_merge`: boolean\n  * `subscribers_count`: integer\n  * `network_count`: integer\n  * `code_of_conduct`: `Code Of Conduct`:\n    * `key`: required, string\n    * `name`: required, string\n    * `url`: required, string, format: uri\n    * `body`: string\n    * `html_url`: required, string or null, format: uri\n  * `license`: object or null:\n    * `key`: string\n    * `name`: string\n    * `spdx_id`: string\n    * `url`: string or null\n    * `node_id`: string\n  * `forks`: integer\n  * `open_issues`: integer\n  * `watchers`: integer\n  * `allow_forking`: boolean\n  * `web_commit_signoff_required`: boolean\n  * `security_and_analysis`: object or null:\n    * `advanced_security`: object:\n      * `status`: string, enum: `enabled`, `disabled`\n    * `code_security`: object:\n      * `status`: string, enum: `enabled`, `disabled`\n    * `dependabot_security_updates`: object:\n      * `status`: string, enum: `enabled`, `disabled`\n    * `secret_scanning`: object:\n      * `status`: string, enum: `enabled`, `disabled`\n    * `secret_scanning_push_protection`: object:\n      * `status`: string, enum: `enabled`, `disabled`\n    * `secret_scanning_non_provider_patterns`: object:\n      * `status`: string, enum: `enabled`, `disabled`\n    * `secret_scanning_ai_detection`: object:\n      * `status`: string, enum: `enabled`, `disabled`\n    * `secret_scanning_delegated_alert_dismissal`: object:\n      * `status`: string, enum: `enabled`, `disabled`\n    * `secret_scanning_delegated_bypass`: object:\n      * `status`: string, enum: `enabled`, `disabled`\n    * `secret_scanning_delegated_bypass_options`: object:\n      * `reviewers`: array of objects:\n        * `reviewer_id`: required, integer\n        * `reviewer_type`: required, string, enum: `TEAM`, `ROLE`\n        * `mode`: string, enum: `ALWAYS`, `EXEMPT`, default: `\"ALWAYS\"`\n  * `custom_properties`: object, additional properties allowed\n* `machine`: required, any of:\n  * **null**\n  * **Codespace machine**\n    * `name`: required, string\n    * `display_name`: required, string\n    * `operating_system`: required, string\n    * `storage_in_bytes`: required, integer\n    * `memory_in_bytes`: required, integer\n    * `cpus`: required, integer\n    * `prebuild_availability`: required, string or null, enum: `none`, `ready`, `in_progress`, `null`\n* `devcontainer_path`: string or null\n* `prebuild`: required, boolean or null\n* `created_at`: required, string, format: date-time\n* `updated_at`: required, string, format: date-time\n* `last_used_at`: required, string, format: date-time\n* `state`: required, string, enum: `Unknown`, `Created`, `Queued`, `Provisioning`, `Available`, `Awaiting`, `Unavailable`, `Deleted`, `Moved`, `Shutdown`, `Archived`, `Starting`, `ShuttingDown`, `Failed`, `Exporting`, `Updating`, `Rebuilding`\n* `url`: required, string, format: uri\n* `git_status`: required, object:\n  * `ahead`: integer\n  * `behind`: integer\n  * `has_unpushed_changes`: boolean\n  * `has_uncommitted_changes`: boolean\n  * `ref`: string\n* `location`: required, string, enum: `EastUs`, `SouthEastAsia`, `WestEurope`, `WestUs2`\n* `idle_timeout_minutes`: required, integer or null\n* `web_url`: required, string, format: uri\n* `machines_url`: required, string, format: uri\n* `start_url`: required, string, format: uri\n* `stop_url`: required, string, format: uri\n* `publish_url`: string or null, format: uri\n* `pulls_url`: required, string or null, format: uri\n* `recent_folders`: required, array of string\n* `runtime_constraints`: object:\n  * `allowed_port_privacy_settings`: array of string or null\n* `pending_operation`: boolean or null\n* `pending_operation_disabled_reason`: string or null\n* `idle_timeout_notice`: string or null\n* `retention_period_minutes`: integer or null\n* `retention_expires_at`: string or null, format: date-time\n* `last_known_stop_notice`: string or null"}