{"meta":{"title":"問題タイプのREST APIエンドポイント","intro":"REST API を使用して、リポジトリの問題の種類を管理します。","product":"REST API","breadcrumbs":[{"href":"/ja/rest","title":"REST API"},{"href":"/ja/rest/repos","title":"リポジトリ"},{"href":"/ja/rest/repos/issue-types","title":"課題の種類"}],"documentType":"article"},"body":"# 問題タイプのREST APIエンドポイント\n\nREST API を使用して、リポジトリの問題の種類を管理します。\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"}