{"meta":{"title":"Puntos de conexión de API REST para tipos de incidencias","intro":"Use la API REST para administrar los tipos de problemas de un repositorio.","product":"REST API","breadcrumbs":[{"href":"/es/rest","title":"REST API"},{"href":"/es/rest/repos","title":"Repositorios"},{"href":"/es/rest/repos/issue-types","title":"Tipos de incidencias"}],"documentType":"article"},"body":"# Puntos de conexión de API REST para tipos de incidencias\n\nUse la API REST para administrar los tipos de problemas de un repositorio.\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"}