{"meta":{"title":"Points de terminaison de l’API REST pour la vérification de l’accès à l’entreprise","intro":"Utilisez l’API REST pour gérer la configuration de la vérification de l’accès à l’entreprise dans votre entreprise GitHub.","product":"API REST","breadcrumbs":[{"href":"/fr/enterprise-cloud@latest/rest","title":"API REST"},{"href":"/fr/enterprise-cloud@latest/rest/enterprise-admin","title":"Administration d’entreprise"},{"href":"/fr/enterprise-cloud@latest/rest/enterprise-admin/enterprises","title":"Vérification de l’accès à l’entreprise"}],"documentType":"article"},"body":"# Points de terminaison de l’API REST pour la vérification de l’accès à l’entreprise\n\nUtilisez l’API REST pour gérer la configuration de la vérification de l’accès à l’entreprise dans votre entreprise 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)."}