{"meta":{"title":"Points de terminaison d’API REST pour les types de problèmes","intro":"Utilisez l’API REST pour gérer les types de problèmes d’un référentiel.","product":"API REST","breadcrumbs":[{"href":"/fr/rest","title":"API REST"},{"href":"/fr/rest/repos","title":"Référentiels"},{"href":"/fr/rest/repos/issue-types","title":"Types de problèmes"}],"documentType":"article"},"body":"# Points de terminaison d’API REST pour les types de problèmes\n\nUtilisez l’API REST pour gérer les types de problèmes d’un référentiel.\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 issue types for a repository\n\n```\nGET /repos/{owner}/{repo}/issue-types\n```\n\nLists issue types available for a repository (inherited from its organization owner, with any per-repository overrides applied).\nOAuth app tokens and personal access tokens (classic) need the repo scope to use this endpoint.\nFine-grained access tokens require the \"Metadata\" repository permission (read).\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- **`owner`** (string) (required)\n  The account owner of the repository. The name is not case sensitive.\n\n- **`repo`** (string) (required)\n  The name of the repository without the .git extension. The name is not case sensitive.\n\n### HTTP response status codes\n\n- **200** - OK\n\n- **404** - Resource not found\n\n### Code examples\n\n#### Example\n\n**Request:**\n\n```curl\ncurl -L \\\n  -X GET \\\n  https://api.github.com/repos/OWNER/REPO/issue-types\n```\n\n**Response schema (Status: 200):**\n\nArray of `Issue Type`:\n  * `id`: required, integer\n  * `node_id`: required, string\n  * `name`: required, string\n  * `description`: required, string or null\n  * `color`: string or null, enum: `gray`, `blue`, `green`, `yellow`, `orange`, `red`, `pink`, `purple`, `null`\n  * `created_at`: string, format: date-time\n  * `updated_at`: string, format: date-time\n  * `is_enabled`: boolean"}