{"id":27879,"date":"2025-10-01T05:57:23","date_gmt":"2025-10-01T05:57:23","guid":{"rendered":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/?page_id=27879"},"modified":"2025-10-21T14:46:43","modified_gmt":"2025-10-21T05:46:43","slug":"labels","status":"publish","type":"page","link":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/api-manual\/reference\/labels\/","title":{"rendered":"\u30e9\u30d9\u30eb"},"content":{"rendered":"<p>\u30e9\u30d9\u30eb\u306b\u95a2\u3059\u308b\u60c5\u5831\u3092\u53d6\u5f97\u3059\u308b\u306b\u306f\u3001\u6b21\u306e API \u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<h2 id=\"h_01JZ5T89HCDKVNNSZ71CAFJTWG\">get_label<\/h2>\n<p>\u65e2\u5b58\u306e\u30e9\u30d9\u30eb\u3092\u8fd4\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">GET index.php?\/api\/v2\/get_label\/{label_id}<\/pre>\n<h3 id=\"h_01JZ5TGVRE48ZAVPP5KGAH65ST\">\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc<\/h3>\n<table class=\"table table--hover\">\n<thead>\n<tr>\n<th>\u540d\u524d<\/th>\n<th>Type<\/th>\n<th>\u5fc5\u9808<\/th>\n<th>\u8aac\u660e<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>label_id<\/td>\n<td>integer<\/td>\n<td>true<\/td>\n<td>\u30e9\u30d9\u30eb\u306e ID\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3 id=\"h_01JZ5TR9XDPV20YS7W9EJ3AW4E\">\u30ec\u30b9\u30dd\u30f3\u30b9\u306e\u5185\u5bb9<\/h3>\n<p>\u30ec\u30b9\u30dd\u30f3\u30b9\u306e\u4f8b<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">{ \n \"id\": 1,\n \"name\": \"Release 2.0\",\n \"created_by\":\"user_id\",\n \"created_on\": unique timestamp,\n}<\/pre>\n<h3 id=\"h_01JZ5TV70EGRESNS3GGF2N6TCF\">\u30ec\u30b9\u30dd\u30f3\u30b9 \u30b3\u30fc\u30c9<\/h3>\n<table class=\"table table--hover\">\n<thead>\n<tr>\n<th>\u30b9\u30c6\u30fc\u30bf\u30b9 \u30b3\u30fc\u30c9<\/th>\n<th>\u8aac\u660e<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>200<\/td>\n<td>\u6210\u529f\u3002\u30e9\u30d9\u30eb\u304c\u30ec\u30b9\u30dd\u30f3\u30b9\u306e\u4e00\u90e8\u3068\u3057\u3066\u8fd4\u3055\u308c\u307e\u3059<\/td>\n<\/tr>\n<tr>\n<td>400<\/td>\n<td>\u7121\u52b9\u306a\u30e9\u30d9\u30eb<\/td>\n<\/tr>\n<tr>\n<td>403<\/td>\n<td>\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306b\u30a2\u30af\u30bb\u30b9\u4e0d\u53ef<\/td>\n<\/tr>\n<tr>\n<td>429<\/td>\n<td><strong>TestRail Cloud \u306e\u307f<\/strong>\u2014\u30ea\u30af\u30a8\u30b9\u30c8\u304c\u591a\u3059\u304e\u307e\u3059 (<a href=\"\/api-manual\/getting-started-with-testrail-api\/introduction-api\/#API\" target=\"_blank\" rel=\"noopener\">API \u30ec\u30fc\u30c8\u5236\u9650<\/a>\u3092\u53c2\u7167)<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2 id=\"h_01JZ5TXX18885RWHPZVT91YN8A\">get_labels<\/h2>\n<p>\u65e2\u5b58\u306e\u30e9\u30d9\u30eb\u306e\u30ea\u30b9\u30c8\u3092\u8fd4\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">GET index.php?\/api\/v2\/get_labels\/{project_id}<\/pre>\n<p class=\"ip-location-block-dropup ip-location-block-dropdown\">\n<h3 id=\"h_01JZ5VANBER0D55PE60B0D7SRD\">\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc<\/h3>\n<table class=\"table table--hover\" style=\"height: 88px;\">\n<thead>\n<tr style=\"height: 22px;\">\n<th style=\"height: 22px; width: 62.625px;\">\u540d\u524d<\/th>\n<th style=\"height: 22px; width: 57.6px;\">Type<\/th>\n<th style=\"height: 22px; width: 70.85px;\">\u5fc5\u9808<\/th>\n<th style=\"height: 22px; width: 144.575px;\">\u8aac\u660e<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr style=\"height: 22px;\">\n<td style=\"height: 22px; width: 54.625px;\">project_id<\/td>\n<td style=\"height: 22px; width: 49.6px;\">integer<\/td>\n<td style=\"height: 22px; width: 62.85px;\">true<\/td>\n<td style=\"height: 22px; width: 136.575px;\">\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e ID\u3002<\/td>\n<\/tr>\n<tr style=\"height: 22px;\">\n<td style=\"width: 54.625px; height: 22px;\">offset<\/td>\n<td style=\"width: 49.6px; height: 22px;\">integer<\/td>\n<td style=\"width: 62.85px; height: 22px;\">false<\/td>\n<td style=\"width: 136.575px; height: 22px;\">\u30c6\u30b9\u30c8 \u30b1\u30fc\u30b9\u306e\u30ab\u30a6\u30f3\u30c8\u3092\u958b\u59cb\u3059\u308b\u4f4d\u7f6e (\u30aa\u30d5\u30bb\u30c3\u30c8)<\/td>\n<\/tr>\n<tr style=\"height: 22px;\">\n<td style=\"width: 54.625px; height: 22px;\">limit<\/td>\n<td style=\"width: 49.6px; height: 22px;\">integer<\/td>\n<td style=\"width: 62.85px; height: 22px;\">false<\/td>\n<td style=\"width: 136.575px; height: 22px;\">\u30ec\u30b9\u30dd\u30f3\u30b9\u304c\u8fd4\u3059\u3079\u304d\u30e9\u30d9\u30eb\u306e\u6570\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3 id=\"h_01JZ5VB9SHD5J278JWCJMXAWK3\">\u30ec\u30b9\u30dd\u30f3\u30b9\u306e\u5185\u5bb9<\/h3>\n<p>\u30ec\u30b9\u30dd\u30f3\u30b9\u306e\u4f8b<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">{\n    \"offset\": 0,\n    \"limit\": 250,\n    \"size\": 250,\n    \"_links\": {\n        \"next\": \"\/api\/v2\/get_labels\/1&amp;limit=250&amp;offset=250\",\n        \"prev\": null\n    },\n    \"labels\": [\n        {\n            \"id\": 1,\n            \"title\": \"label1\",\n            \"created_by\":\"2\",\n            \"created_on\": \"timestamp\",\n        },\n        {\n            \"id\": 2,\n            \"title\": \"label2\",\n            \"created_by\":\"2\",\n            \"created_on\": \"timestamp\",\n        }\n    ]\n}<\/pre>\n<h3 id=\"h_01JZ5VN195YG8456WV8RT3WVJP\" class=\"ip-location-block-dropup ip-location-block-dropdown\">\u30ec\u30b9\u30dd\u30f3\u30b9 \u30b3\u30fc\u30c9<\/h3>\n<table class=\"table table--hover\">\n<thead>\n<tr>\n<th>\u30b9\u30c6\u30fc\u30bf\u30b9 \u30b3\u30fc\u30c9<\/th>\n<th>\u8aac\u660e<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>200<\/td>\n<td>\u6210\u529f\u3002\u30e9\u30d9\u30eb\u304c\u30ec\u30b9\u30dd\u30f3\u30b9\u306e\u4e00\u90e8\u3068\u3057\u3066\u8fd4\u3055\u308c\u307e\u3059<\/td>\n<\/tr>\n<tr>\n<td>400<\/td>\n<td>\u7121\u52b9\u306a\u30e9\u30d9\u30eb<\/td>\n<\/tr>\n<tr>\n<td>403<\/td>\n<td>\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306b\u30a2\u30af\u30bb\u30b9\u4e0d\u53ef<\/td>\n<\/tr>\n<tr>\n<td>429<\/td>\n<td><strong>TestRail Cloud \u306e\u307f<\/strong>\u2014\u30ea\u30af\u30a8\u30b9\u30c8\u304c\u591a\u3059\u304e\u307e\u3059 (<a href=\"\/api-manual\/getting-started-with-testrail-api\/introduction-api\/#API\" target=\"_blank\" rel=\"noopener noreferrer\">API \u30ec\u30fc\u30c8\u5236\u9650<\/a>\u3092\u53c2\u7167)<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>update_label<\/h2>\n<p>\u65e2\u5b58\u306e\u30e9\u30d9\u30eb\u3092\u66f4\u65b0\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">POST index.php?\/api\/v2\/update_label\/{label_id}<\/pre>\n<h3 id=\"h_01JZ5YW63YWXCF20C1MSH6ZAV8\">\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc<\/h3>\n<table class=\"table table--hover\" style=\"height: 66px;\">\n<thead>\n<tr style=\"height: 22px;\">\n<th style=\"height: 22px; width: 78.6328px;\">\u540d\u524d<\/th>\n<th style=\"height: 22px; width: 57.6016px;\">Type<\/th>\n<th style=\"height: 22px; width: 70.8438px;\">\u5fc5\u9808<\/th>\n<th style=\"height: 22px; width: 154.953px;\">\u8aac\u660e<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr style=\"height: 22px;\">\n<td style=\"height: 22px; width: 70.6328px;\">project_id<\/td>\n<td style=\"height: 22px; width: 49.6016px;\">integer<\/td>\n<td style=\"height: 22px; width: 62.8438px;\">true<\/td>\n<td style=\"height: 22px; width: 146.953px;\">\u30e9\u30d9\u30eb\u3092\u66f4\u65b0\u3059\u308b\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e ID\u3002<\/td>\n<\/tr>\n<tr style=\"height: 22px;\">\n<td style=\"height: 22px; width: 70.6328px;\">title<\/td>\n<td style=\"height: 22px; width: 49.6016px;\">string<\/td>\n<td style=\"height: 22px; width: 62.8438px;\">true<\/td>\n<td style=\"height: 22px; width: 146.953px;\">\u30e9\u30d9\u30eb\u306e\u30bf\u30a4\u30c8\u30eb\u3002\u6700\u5927 20 \u6587\u5b57\u307e\u3067\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3 id=\"h_01JZ5YXX38BHBFNHEMFMCFX4HG\">\u30ec\u30b9\u30dd\u30f3\u30b9\u306e\u5185\u5bb9<\/h3>\n<p>\u30ec\u30b9\u30dd\u30f3\u30b9\u306e\u4f8b<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"json\">{ \n  \"id\": 1,\n  \"title\": \"Release 2.0\",\n}<\/pre>\n<h3 id=\"h_01JZ5YZBK7EH3BZTRKM26WXZDX\">\u30ec\u30b9\u30dd\u30f3\u30b9 \u30b3\u30fc\u30c9<\/h3>\n<table class=\"table table--hover\">\n<thead>\n<tr>\n<th>\u30b9\u30c6\u30fc\u30bf\u30b9 \u30b3\u30fc\u30c9<\/th>\n<th>\u8aac\u660e<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>200<\/td>\n<td>\u6210\u529f\u3002\u30e9\u30d9\u30eb\u304c\u30ec\u30b9\u30dd\u30f3\u30b9\u306e\u4e00\u90e8\u3068\u3057\u3066\u8fd4\u3055\u308c\u307e\u3059<\/td>\n<\/tr>\n<tr>\n<td>400<\/td>\n<td>\u7121\u52b9\u307e\u305f\u306f\u4e0d\u660e\u306a\u30c6\u30b9\u30c8 \u30b1\u30fc\u30b9<\/td>\n<\/tr>\n<tr>\n<td>403<\/td>\n<td>\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306b\u30a2\u30af\u30bb\u30b9\u4e0d\u53ef<\/td>\n<\/tr>\n<tr>\n<td>429<\/td>\n<td><strong>TestRail Cloud \u306e\u307f<\/strong>\u2014\u30ea\u30af\u30a8\u30b9\u30c8\u304c\u591a\u3059\u304e\u307e\u3059 (<a href=\"\/api-manual\/getting-started-with-testrail-api\/introduction-api\/#API\" target=\"_blank\" rel=\"noopener\">API \u30ec\u30fc\u30c8\u5236\u9650<\/a>\u3092\u53c2\u7167)<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>\u30e9\u30d9\u30eb\u306b\u95a2\u3059\u308b\u60c5\u5831\u3092\u53d6\u5f97\u3059\u308b\u306b\u306f\u3001\u6b21\u306e API \u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002 get_label \u65e2\u5b58\u306e\u30e9\u30d9\u30eb\u3092\u8fd4\u3057\u307e\u3059\u3002 GET index.php?\/api\/v2\/get_label\/{label_id} \u30d1\u30e9\u30e1\u30fc\u30bf\u30fc \u540d [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"parent":6632,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"class_list":["post-27879","page","type-page","status-publish","hentry"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-json\/wp\/v2\/pages\/27879","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-json\/wp\/v2\/comments?post=27879"}],"version-history":[{"count":21,"href":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-json\/wp\/v2\/pages\/27879\/revisions"}],"predecessor-version":[{"id":29240,"href":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-json\/wp\/v2\/pages\/27879\/revisions\/29240"}],"up":[{"embeddable":true,"href":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-json\/wp\/v2\/pages\/6632"}],"wp:attachment":[{"href":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-json\/wp\/v2\/media?parent=27879"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}