{"meta":{"title":"Enterprise アクセス検証用の REST API エンドポイント","intro":"REST API を使って、GitHub Enterprise 内の Enterprise アクセスの検証構成を管理します。","product":"REST API","breadcrumbs":[{"href":"/ja/enterprise-cloud@latest/rest","title":"REST API"},{"href":"/ja/enterprise-cloud@latest/rest/enterprise-admin","title":"企業管理"},{"href":"/ja/enterprise-cloud@latest/rest/enterprise-admin/enterprises","title":"企業アクセスの検証"}],"documentType":"article"},"body":"# Enterprise アクセス検証用の REST API エンドポイント\n\nREST API を使って、GitHub Enterprise 内の Enterprise アクセスの検証構成を管理します。\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)."}