{"meta":{"title":"Puntos de conexión de la API de REST para la comprobación de acceso empresarial","intro":"Usa la API de REST para administrar la configuración de comprobación de acceso empresarial en tu empresa de GitHub.","product":"REST API","breadcrumbs":[{"href":"/es/enterprise-cloud@latest/rest","title":"REST API"},{"href":"/es/enterprise-cloud@latest/rest/enterprise-admin","title":"Administración empresarial"},{"href":"/es/enterprise-cloud@latest/rest/enterprise-admin/enterprises","title":"Comprobación de acceso empresarial"}],"documentType":"article"},"body":"# Puntos de conexión de la API de REST para la comprobación de acceso empresarial\n\nUsa la API de REST para administrar la configuración de comprobación de acceso empresarial en tu empresa de GitHub.\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## Disable access restrictions for an enterprise\n\n```\nPOST /enterprises/{enterprise}/access-restrictions/disable\n```\n\nDisable access restriction by proxy header using the network proxy owned by the enterprise.\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- **`enterprise`** (string) (required)\n  The slug version of the enterprise name.\n\n### HTTP response status codes\n\n- **200** - OK\n\n- **400** - 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/enterprises/ENTERPRISE/access-restrictions/disable\n```\n\n**Response schema (Status: 200):**\n\n* `message`: required, string\n* `header_name`: required, string\n* `header_value`: required, string\n\n## Enable access restrictions for an enterprise\n\n```\nPOST /enterprises/{enterprise}/access-restrictions/enable\n```\n\nEnable access restriction by proxy header using the network proxy owned by the enterprise.\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- **`enterprise`** (string) (required)\n  The slug version of the enterprise name.\n\n### HTTP response status codes\n\n- **200** - OK\n\n- **400** - 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/enterprises/ENTERPRISE/access-restrictions/enable\n```\n\n**Response schema (Status: 200):**\n\nSame response schema as [Disable access restrictions for an enterprise](#disable-access-restrictions-for-an-enterprise)."}