{"id":21395,"date":"2023-01-30T04:36:23","date_gmt":"2023-01-30T04:36:23","guid":{"rendered":"https:\/\/44.225.35.201\/testrail\/docs\/801\/api-manual\/reference\/tests\/"},"modified":"2025-10-22T19:35:58","modified_gmt":"2025-10-22T10:35:58","slug":"api-tests","status":"publish","type":"page","link":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/api-manual\/reference\/api-tests\/","title":{"rendered":"\u30c6\u30b9\u30c8"},"content":{"rendered":"<p>\u30c6\u30b9\u30c8 (\u7279\u5b9a\u306e\u30c6\u30b9\u30c8 \u30e9\u30f3\u307e\u305f\u306f\u30c6\u30b9\u30c8\u8a08\u753b\u306b\u8ffd\u52a0\u3055\u308c\u305f\u30c6\u30b9\u30c8 \u30b1\u30fc\u30b9\u306e\u500b\u3005\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9) \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=\"gettest\">get_test<\/h2>\n<p>\u65e2\u5b58\u306e\u30c6\u30b9\u30c8\u3092\u8fd4\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"powershell\">GET index.php?\/api\/v2\/get_test\/{test_id}<\/pre>\n<div class=\"et_pb_module et_pb_text et_pb_text_3 docs-table  et_pb_text_align_left et_pb_bg_layout_light\">\n<div class=\"et_pb_text_inner\">\n<h3 id=\"01G68JZ4AKYR83WPCAFVVN0TKJ\">\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc<\/h3>\n<table class=\"table table--hover\">\n<thead>\n<tr>\n<th>\u540d\u524d<\/th>\n<th>\u30bf\u30a4\u30d7<\/th>\n<th>\u5fc5\u9808<\/th>\n<th>\u8aac\u660e<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>test_id<\/td>\n<td>integer<\/td>\n<td>true<\/td>\n<td>\u30c6\u30b9\u30c8\u306e ID<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<div><\/div>\n<div>\u30c6\u30b9\u30c8\u3067\u306f\u306a\u304f\u30c6\u30b9\u30c8<em>\u7d50\u679c<\/em>\u306b\u3064\u3044\u3066\u77e5\u308b\u306b\u306f\u3001<a class=\"wikilink1\" href=\"\/api-results\/#get_results\" target=\"_blank\" rel=\"noopener\">get_results<\/a>\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/div>\n<h3>\u30ea\u30af\u30a8\u30b9\u30c8 \u30d5\u30a3\u30eb\u30bf\u30fc<\/h3>\n<table class=\"table table--hover\" style=\"height: 44px;\">\n<thead>\n<tr style=\"height: 22px;\">\n<th style=\"width: 161.927px; height: 22px;\">\u540d\u524d<\/th>\n<th style=\"width: 114.792px; height: 22px;\">\u30bf\u30a4\u30d7<\/th>\n<th style=\"width: 413.385px; height: 22px;\">\u8aac\u660e<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr style=\"height: 22px;\">\n<td style=\"width: 153.906px; height: 22px;\">with_data<\/td>\n<td style=\"width: 106.771px; height: 22px;\">string<\/td>\n<td style=\"width: 405.365px; height: 22px;\">\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b\u305f\u3081\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>\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    \"assignedto_id\": 1,\n    \"case_id\": 1,\n    \"custom_expected\": \"..\",\n    \"custom_preconds\": \"..\",\n    \"custom_steps_separated\": [\n        {\n            \"content\": \"Step 1\",\n            \"expected\": \"Expected Result 1\"\n        },\n        {\n            \"content\": \"Step 2\",\n            \"expected\": \"Expected Result 2\"\n        }\n    ],\n    \"estimate\": \"1m 5s\",\n    \"estimate_forecast\": null,\n    \"id\": 100,\n    \"priority_id\": 2,\n    \"run_id\": 1,\n    \"status_id\": 5,\n    \"title\": \"Verify line spacing on multi-page document\",\n    \"type_id\": 4,\n    \"labels\": [\n      {\n       \"id\": 1,\n       \"title\": \"label1\",\n       },\n      {\n       \"id\": 2,\n       \"title\": \"label2\",\n      }\n   ]\n}<\/pre>\n<p>\u30ec\u30b9\u30dd\u30f3\u30b9\u306b\u306f\u6b21\u306e\u30b7\u30b9\u30c6\u30e0\u9805\u76ee\u304c\u5e38\u306b\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<table class=\"table table--hover\">\n<thead>\n<tr style=\"height: 22px;\">\n<th style=\"width: 160.039px; height: 22px;\">\u540d\u524d<\/th>\n<th style=\"width: 138.958px; height: 22px;\">\u30bf\u30a4\u30d7<\/th>\n<th style=\"width: 391.107px; height: 22px;\">\u8aac\u660e<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr style=\"height: 22px;\">\n<td style=\"width: 152.018px; height: 22px;\">assignedto_id<\/td>\n<td style=\"width: 130.938px; height: 22px;\">integer<\/td>\n<td style=\"width: 383.086px; height: 22px;\">\u30c6\u30b9\u30c8\u304c\u5272\u308a\u5f53\u3066\u3089\u308c\u305f\u30e6\u30fc\u30b6\u30fc\u306e ID<\/td>\n<\/tr>\n<tr style=\"height: 22px;\">\n<td style=\"width: 152.018px; height: 22px;\">case_id<\/td>\n<td style=\"width: 130.938px; height: 22px;\">integer<\/td>\n<td style=\"width: 383.086px; height: 22px;\">\u95a2\u9023\u3059\u308b\u30c6\u30b9\u30c8 \u30b1\u30fc\u30b9\u306e ID<\/td>\n<\/tr>\n<tr style=\"height: 22px;\">\n<td style=\"width: 152.018px; height: 22px;\">estimate<\/td>\n<td style=\"width: 130.938px; height: 22px;\">timespan<\/td>\n<td style=\"width: 383.086px; height: 22px;\">\u95a2\u9023\u3059\u308b\u30c6\u30b9\u30c8 \u30b1\u30fc\u30b9\u306e\u898b\u7a4d\u308a\u3002\u4f8b\u3048\u3070 \u201c30s\u201d \u3084 \u201c1m 45s\u201d<\/td>\n<\/tr>\n<tr style=\"height: 22px;\">\n<td style=\"width: 152.018px; height: 22px;\">estimate_forecast<\/td>\n<td style=\"width: 130.938px; height: 22px;\">timespan<\/td>\n<td style=\"width: 383.086px; height: 22px;\">\u95a2\u9023\u3059\u308b\u30c6\u30b9\u30c8 \u30b1\u30fc\u30b9\u306e\u4e88\u60f3\u898b\u7a4d\u308a\u3002\u4f8b\u3048\u3070 \u201c30s\u201d \u3084 \u201c1m 45s\u201d<\/td>\n<\/tr>\n<tr style=\"height: 22px;\">\n<td style=\"width: 152.018px; height: 22px;\">id<\/td>\n<td style=\"width: 130.938px; height: 22px;\">integer<\/td>\n<td style=\"width: 383.086px; height: 22px;\">\u30c6\u30b9\u30c8\u306e\u4e00\u610f\u306e ID<\/td>\n<\/tr>\n<tr style=\"height: 22px;\">\n<td style=\"width: 152.018px; height: 22px;\">milestone_id<\/td>\n<td style=\"width: 130.938px; height: 22px;\">integer<\/td>\n<td style=\"width: 383.086px; height: 22px;\">\u30c6\u30b9\u30c8 \u30b1\u30fc\u30b9\u306b\u30ea\u30f3\u30af\u3055\u308c\u3066\u3044\u308b\u30de\u30a4\u30eb\u30b9\u30c8\u30fc\u30f3\u306e ID<\/td>\n<\/tr>\n<tr style=\"height: 22px;\">\n<td style=\"width: 152.018px; height: 22px;\">priority_id<\/td>\n<td style=\"width: 130.938px; height: 22px;\">integer<\/td>\n<td style=\"width: 383.086px; height: 22px;\">\u30c6\u30b9\u30c8 \u30b1\u30fc\u30b9\u306b\u30ea\u30f3\u30af\u3055\u308c\u3066\u3044\u308b\u512a\u5148\u5ea6\u306e ID<\/td>\n<\/tr>\n<tr style=\"height: 22px;\">\n<td style=\"width: 152.018px; height: 22px;\">refs<\/td>\n<td style=\"width: 130.938px; height: 22px;\">string<\/td>\n<td style=\"width: 383.086px; height: 22px;\">\u30c6\u30b9\u30c8 \u30b1\u30fc\u30b9\u306b\u30ea\u30f3\u30af\u3055\u308c\u3066\u3044\u308b\u53c2\u7167\/\u8981\u4ef6\u306e\u30ab\u30f3\u30de\u533a\u5207\u308a\u30ea\u30b9\u30c8<\/td>\n<\/tr>\n<tr style=\"height: 22px;\">\n<td style=\"width: 152.018px; height: 22px;\">run_id<\/td>\n<td style=\"width: 130.938px; height: 22px;\">integer<\/td>\n<td style=\"width: 383.086px; height: 22px;\">\u30c6\u30b9\u30c8\u304c\u6240\u5c5e\u3059\u308b \u30c6\u30b9\u30c8 \u30e9\u30f3 \u306e ID<\/td>\n<\/tr>\n<tr style=\"height: 22px;\">\n<td style=\"width: 152.018px; height: 22px;\">status_id<\/td>\n<td style=\"width: 130.938px; height: 22px;\">integer<\/td>\n<td style=\"width: 383.086px; height: 22px;\">\u30c6\u30b9\u30c8\u306e\u73fe\u5728\u306e\u30b9\u30c6\u30fc\u30bf\u30b9 ID\u3002<a href=\"\/api-statuses\/#get_statuses\" target=\"_blank\" rel=\"noopener\">get_statuses<\/a> \u3082\u53c2\u7167\u3002<\/td>\n<\/tr>\n<tr style=\"height: 22px;\">\n<td style=\"width: 152.018px; height: 22px;\">title<\/td>\n<td style=\"width: 130.938px; height: 22px;\">string<\/td>\n<td style=\"width: 383.086px; height: 22px;\">\u95a2\u9023\u3059\u308b\u30c6\u30b9\u30c8 \u30b1\u30fc\u30b9\u306e\u30bf\u30a4\u30c8\u30eb<\/td>\n<\/tr>\n<tr style=\"height: 22px;\">\n<td style=\"width: 152.018px; height: 22px;\">type_id<\/td>\n<td style=\"width: 130.938px; height: 22px;\">integer<\/td>\n<td style=\"width: 383.086px; height: 22px;\">\u30c6\u30b9\u30c8 \u30b1\u30fc\u30b9\u306b\u30ea\u30f3\u30af\u3055\u308c\u3066\u3044\u308b\u30c6\u30b9\u30c8 \u30b1\u30fc\u30b9 \u30bf\u30a4\u30d7\u306e ID<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<div><\/div>\n<div>\u30ec\u30b9\u30dd\u30f3\u30b9\u306b\u306f\u30c6\u30b9\u30c8 \u30b1\u30fc\u30b9\u306e\u30ab\u30b9\u30bf\u30e0 \u30d5\u30a3\u30fc\u30eb\u30c9\u3082\u542b\u307e\u308c\u3066\u304a\u308a\u3001\u5148\u982d\u306b \u2018custom_\u2019 \u3092\u4ed8\u3051\u305f\u30b7\u30b9\u30c6\u30e0\u540d\u304c\u30d5\u30a3\u30fc\u30eb\u30c9\u540d\u3068\u3057\u3066\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002\u5229\u7528\u53ef\u80fd\u306a\u30ab\u30b9\u30bf\u30e0 \u30d5\u30a3\u30fc\u30eb\u30c9 \u30bf\u30a4\u30d7\u306e\u4e00\u89a7\u306f <a class=\"wikilink1\" href=\"\/api-cases#add_case\" target=\"_blank\" rel=\"noopener\">add_case<\/a> \u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/div>\n<div><\/div>\n<h3>\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\u30c6\u30b9\u30c8\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<\/td>\n<\/tr>\n<tr>\n<td>403<\/td>\n<td>\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u306a\u3044<\/td>\n<\/tr>\n<tr>\n<td>429<\/td>\n<td><strong>TestRail Cloud \u306e\u307f \u2013<\/strong>\u00a0\u30ea\u30af\u30a8\u30b9\u30c8\u304c\u591a\u3059\u304e\u307e\u3059<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<div>\n<h2>get_tests<\/h2>\n<p><span>1 \u3064\u306e \u30c6\u30b9\u30c8 \u30e9\u30f3 \u306b\u5bfe\u3059\u308b\u30c6\u30b9\u30c8\u306e\u30ea\u30b9\u30c8\u3092\u8fd4\u3057\u307e\u3059\u3002<\/span><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"powershell\">GET index.php?\/api\/v2\/get_tests\/{run_id}<\/pre>\n<h3>\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc<\/h3>\n<table class=\"table table--hover\">\n<thead>\n<tr>\n<th style=\"width: 64.0104px;\">\u540d\u524d<\/th>\n<th style=\"width: 69.0104px;\">\u30bf\u30a4\u30d7<\/th>\n<th style=\"width: 76.0156px;\">\u5fc5\u9808<\/th>\n<th style=\"width: 179.01px;\">\u8aac\u660e<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"width: 55.9896px;\">run_id<\/td>\n<td style=\"width: 60.9896px;\">integer<\/td>\n<td style=\"width: 67.9948px;\">true<\/td>\n<td style=\"width: 170.99px;\">\u30c6\u30b9\u30c8 \u30e9\u30f3\u306e ID<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<div><\/div>\n<div>\u30c6\u30b9\u30c8\u3067\u306f\u7121\u304f\u30c6\u30b9\u30c8\u7d50\u679c\u306b\u3064\u3044\u3066\u77e5\u308b\u306b\u306f\u3001<a href=\"\/api-results\/#get_results\" target=\"_blank\" rel=\"noopener\">get_results<\/a> \u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/div>\n<h3>\u30ea\u30af\u30a8\u30b9\u30c8 \u30d5\u30a3\u30eb\u30bf\u30fc<\/h3>\n<p>\u30ea\u30af\u30a8\u30b9\u30c8 URL \u306e query \u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u3092\u4f7f\u7528\u3057\u3066\u3001\u4ee5\u4e0b\u306e\u30d5\u30a3\u30eb\u30bf\u30fc\u3092\u9069\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\n<table class=\"table table--hover\" style=\"height: 44px;\">\n<thead>\n<tr style=\"height: 22px;\">\n<th style=\"width: 144.492px; height: 22px;\">\u540d\u524d<\/th>\n<th style=\"width: 133.32px; height: 22px;\">\u30bf\u30a4\u30d7<\/th>\n<th style=\"width: 412.292px; height: 22px;\">\u8aac\u660e<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr style=\"height: 22px;\">\n<td style=\"width: 136.471px; height: 22px;\">status_id<\/td>\n<td style=\"width: 125.299px; height: 22px;\">integer (list)<\/td>\n<td style=\"width: 404.271px; height: 22px;\">\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u3059\u308b\u30b9\u30c6\u30fc\u30bf\u30b9 ID \u306e\u30ab\u30f3\u30de\u533a\u5207\u308a\u30ea\u30b9\u30c8\u3002<\/td>\n<\/tr>\n<tr style=\"height: 22px;\">\n<td style=\"width: 136.471px; height: 22px;\">limit<\/td>\n<td style=\"width: 125.299px; height: 22px;\">integer<\/td>\n<td style=\"width: 404.271px; height: 22px;\">\u30ec\u30b9\u30dd\u30f3\u30b9\u306b\u8868\u793a\u3055\u308c\u308b\u30c6\u30b9\u30c8\u6570\u306e\u4e0a\u9650 (\u4efb\u610f\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u3002\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30ec\u30b9\u30dd\u30f3\u30b9 \u30b5\u30a4\u30ba\u306f 250) (TestRail 6.7 \u4ee5\u964d\u304c\u5fc5\u8981)<\/td>\n<\/tr>\n<tr style=\"height: 22px;\">\n<td style=\"width: 136.471px; height: 22px;\">offset<\/td>\n<td style=\"width: 125.299px; height: 22px;\">integer (list)<\/td>\n<td style=\"width: 404.271px; height: 22px;\">\u30ec\u30b9\u30dd\u30f3\u30b9\u304c\u958b\u59cb\u3059\u308b\u4f4d\u7f6e\u3092\u793a\u3059\u6570\u5024 (\u4efb\u610f\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc) (TestRail 6.7 \u4ee5\u964d\u304c\u5fc5\u8981)\u3002<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 136.471px;\">label_id<\/td>\n<td style=\"width: 125.299px;\">integer (list)<\/td>\n<td style=\"width: 404.271px;\">\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u3059\u308b\u30e9\u30d9\u30eb ID \u306e\u30ab\u30f3\u30de\u533a\u5207\u308a\u30ea\u30b9\u30c8\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<div><\/div>\n<\/div>\n<div class=\"et_pb_code_inner\"><\/div>\n<div><\/div>\n<div>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"powershell\"># All test cases for test run with ID 1 and status 4, 5 (Retest and Failed)\nGET index.php?\/api\/v2\/get_tests\/1&amp;offset=1&amp;limit=30&amp;status_id=4,5<\/pre>\n<h3>\u30ec\u30b9\u30dd\u30f3\u30b9\u306e\u5185\u5bb9<\/h3>\n<p>\u30ec\u30b9\u30dd\u30f3\u30b9\u306b\u306f\u30c6\u30b9\u30c8\u306e\u914d\u5217\u304c\u542b\u307e\u308c\u307e\u3059\u3002\u30ea\u30b9\u30c8\u5185\u306e\u5404\u30c6\u30b9\u30c8\u306e\u5f62\u5f0f\u306f\u3001<a class=\"wikilink1\" href=\"#get_test\">get_test<\/a> \u3068\u540c\u3058\u3067\u3059\u3002<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"json\">{\n    \"offset\": 0,\n    \"limit\": 250,\n    \"size\": 236,\n    \"_links\": {\n        \"next\": null,\n        \"prev\": null,\n    },\n    \"tests\": [\n        {\n            \"id\": 1,\n            \"title\": \"Test conditional formatting with basic value range\",\n        },\n        {\n            \"id\": 2,\n            \"title\": \"Verify line spacing on multi-page document\",\n        },\n    ]\n}<\/pre>\n<\/div>\n<h3>\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\u30c6\u30b9\u30c8\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 \u30e9\u30f3<\/td>\n<\/tr>\n<tr>\n<td>403<\/td>\n<td>\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u306a\u3044<\/td>\n<\/tr>\n<tr>\n<td>429<\/td>\n<td><strong>TestRail Cloud \u306e\u307f \u2013<\/strong>\u00a0\u30ea\u30af\u30a8\u30b9\u30c8\u304c\u591a\u3059\u304e\u307e\u3059<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2 id=\"01JZ3AEF25J6G10T2TYD418YF9\">update_test<\/h2>\n<p>\u65e2\u5b58\u306e\u30c6\u30b9\u30c8\u306b\u5272\u308a\u5f53\u3066\u3089\u308c\u305f\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_test\/{test_id}<\/pre>\n<div class=\"et_pb_module et_pb_code et_pb_code_0 docs-code-block\">\n<div class=\"et_pb_code_inner\">\n<h3 class=\"\">\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc<\/h3>\n<table class=\"table table--hover\">\n<thead>\n<tr>\n<th>\u540d\u524d<\/th>\n<th>\u30bf\u30a4\u30d7<\/th>\n<th>\u5fc5\u9808<\/th>\n<th>\u8aac\u660e<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>test_id<\/td>\n<td>integer<\/td>\n<td>true<\/td>\n<td>\u66f4\u65b0\u3059\u308b\u30c6\u30b9\u30c8\u306e ID<\/td>\n<\/tr>\n<tr>\n<td>labels<\/td>\n<td>Array of mixed values (integer or string)<\/td>\n<td>true<\/td>\n<td>\u914d\u5217\u5f62\u5f0f\u306e\u30e9\u30d9\u30eb\u306e ID\u3001\u30e9\u30d9\u30eb\u306e\u30bf\u30a4\u30c8\u30eb\u3001\u307e\u305f\u306f\u305d\u306e\u4e21\u65b9\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u4f8b<\/h3>\n<\/div>\n<\/div>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"json\">{\n    \"labels\": [1,2]\n}<\/pre>\n<div class=\"et_pb_module et_pb_code et_pb_code_0 docs-code-block\">\n<div class=\"et_pb_code_inner\">\n<h3 class=\"ip-location-block-dropup ip-location-block-dropdown\">\u30ec\u30b9\u30dd\u30f3\u30b9\u306e\u5185\u5bb9<\/h3>\n<p>\u30ec\u30b9\u30dd\u30f3\u30b9\u306b\u306f\u30c6\u30b9\u30c8\u306e\u914d\u5217\u304c\u542b\u307e\u308c\u307e\u3059\u3002\u30ea\u30b9\u30c8\u5185\u306e\u5404\u30c6\u30b9\u30c8\u306e\u5f62\u5f0f\u306f\u3001<a href=\"#get_test\">get_test<\/a> \u3068\u540c\u3058\u3067\u3059\u3002<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"json\">{\n  \"assignedto_id\": 1, \n  \"case_id\": 1, \n  \"custom_expected\": \"..\", \n  \"custom_preconds\": \"..\", \n  \"custom_steps_separated\": [ \n     { \n        \"content\": \"Step 1\", \n        \"expected\": \"Expected Result 1\" \n     }, \n     { \n        \"content\": \"Step 2\", \n        \"expected\": \"Expected Result 2\" \n     } \n   ], \n  \"estimate\": \"1m 5s\", \n  \"estimate_forecast\": null, \n  \"id\": 100, \n  \"priority_id\": 2, \n  \"run_id\": 1, \"status_id\": 5, \n  \"title\": \"Verify line spacing on multi-page document\", \n  \"type_id\": 4,\n  \"labels\": [\n   {\n    \"id\": 1,\n    \"title\": \"label1\",\n    },\n   {\n    \"id\": 2,\n    \"title\": \"label2\",\n    }\n  ]\n}\n\n<\/pre>\n<h3>\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\u30c6\u30b9\u30c8\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\u3067\u304d\u306a\u3044<\/td>\n<\/tr>\n<tr>\n<td>429<\/td>\n<td><strong>TestRail Cloud \u306e\u307f \u2013<\/strong>\u00a0\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<\/div>\n<\/div>\n<h2 id=\"01JZ3AEF25J6G10T2TYD418YF9\">update_tests<\/h2>\n<p>\u8907\u6570\u306e\u30c6\u30b9\u30c8\u306b\u5272\u308a\u5f53\u3066\u3089\u308c\u305f\u30e9\u30d9\u30eb\u3092\u540c\u3058\u5024\u3067\u66f4\u65b0\u3057\u307e\u3059\u3002\u30c6\u30b9\u30c8\u3054\u3068\u306b\u7570\u306a\u308b\u30e9\u30d9\u30eb\u3092\u6301\u3064\u8907\u6570\u306e\u30c6\u30b9\u30c8\u306e\u66f4\u65b0\u306f\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u305b\u3093\u3002<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">POST index.php?\/api\/v2\/update_tests<\/pre>\n<div class=\"et_pb_module et_pb_code et_pb_code_0 docs-code-block\">\n<div class=\"et_pb_code_inner\">\n<h3 class=\"\">\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc<\/h3>\n<table class=\"table table--hover\">\n<thead>\n<tr>\n<th>\u540d\u524d<\/th>\n<th>\u30bf\u30a4\u30d7<\/th>\n<th>\u5fc5\u9808<\/th>\n<th>\u8aac\u660e<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>test_ids<\/td>\n<td>integer<\/td>\n<td>true<\/td>\n<td>\u66f4\u65b0\u3059\u308b\u30c6\u30b9\u30c8\u306e ID<\/td>\n<\/tr>\n<tr>\n<td>labels<\/td>\n<td>Array of mixed values (integer or string)<\/td>\n<td>true<\/td>\n<td>\u914d\u5217\u5f62\u5f0f\u306e\u30e9\u30d9\u30eb\u306e ID\u3001\u30e9\u30d9\u30eb\u306e\u30bf\u30a4\u30c8\u30eb\u3001\u307e\u305f\u306f\u305d\u306e\u4e21\u65b9\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u4f8b<\/h3>\n<\/div>\n<\/div>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"json\">{\n    \"test_ids\": [1, 2, 3],\n    \"labels\": [1,2]\n}<\/pre>\n<div class=\"et_pb_module et_pb_code et_pb_code_0 docs-code-block\">\n<div class=\"et_pb_code_inner\">\n<h3 class=\"ip-location-block-dropup ip-location-block-dropdown\">\u30ec\u30b9\u30dd\u30f3\u30b9\u306e\u5185\u5bb9<\/h3>\n<p>\u30ec\u30b9\u30dd\u30f3\u30b9\u306b\u306f\u30c6\u30b9\u30c8\u306e\u914d\u5217\u304c\u542b\u307e\u308c\u307e\u3059\u3002\u30ea\u30b9\u30c8\u5185\u306e\u5404\u30c6\u30b9\u30c8\u306e\u5f62\u5f0f\u306f\u3001<a href=\"#get_test\">get_test<\/a> \u3068\u540c\u3058\u3067\u3059\u3002<\/p>\n<h3>\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\u30c6\u30b9\u30c8\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\u3067\u304d\u306a\u3044<\/td>\n<\/tr>\n<tr>\n<td>429<\/td>\n<td><strong>TestRail Cloud \u306e\u307f \u2013<\/strong>\u00a0\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<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u30c6\u30b9\u30c8 (\u7279\u5b9a\u306e\u30c6\u30b9\u30c8 \u30e9\u30f3\u307e\u305f\u306f\u30c6\u30b9\u30c8\u8a08\u753b\u306b\u8ffd\u52a0\u3055\u308c\u305f\u30c6\u30b9\u30c8 \u30b1\u30fc\u30b9\u306e\u500b\u3005\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9) \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_test \u65e2\u5b58\u306e\u30c6\u30b9\u30c8\u3092\u8fd4\u3057\u307e\u3059\u3002 GET ind [&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-21395","page","type-page","status-publish","hentry"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-json\/wp\/v2\/pages\/21395","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=21395"}],"version-history":[{"count":66,"href":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-json\/wp\/v2\/pages\/21395\/revisions"}],"predecessor-version":[{"id":29305,"href":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-json\/wp\/v2\/pages\/21395\/revisions\/29305"}],"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=21395"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}