{"id":21375,"date":"2023-01-30T04:11:58","date_gmt":"2023-01-30T04:11:58","guid":{"rendered":"https:\/\/44.225.35.201\/testrail\/docs\/801\/api-manual\/reference\/templates\/"},"modified":"2023-01-30T13:36:01","modified_gmt":"2023-01-30T04:36:01","slug":"api-templates","status":"publish","type":"page","link":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/api-manual\/reference\/api-templates\/","title":{"rendered":"\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8"},"content":{"rendered":"<p>\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8(\u30c6\u30b9\u30c8 \u30b1\u30fc\u30b9\/\u7d50\u679c\u306e\u30d5\u30a3\u30fc\u30eb\u30c9 \u30ec\u30a4\u30a2\u30a6\u30c8) \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>get_templates<\/h2>\n<p>TestRail 5.2 \u4ee5\u964d\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n<p><code class=\"inline-code\">project_id<\/code> \u306e\u5229\u7528\u53ef\u80fd\u306a\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306e\u30ea\u30b9\u30c8\u3092\u8fd4\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"powershell\">GET index.php?\/api\/v2\/get_templates\/{project_id}<\/pre>\n<div class=\"et_pb_section et_pb_section_1 et_section_regular et_section_transparent\">\n<div class=\"et_pb_module et_pb_code et_pb_code_0 docs-code-block\">\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>project_id<\/td>\n<td>integer<\/td>\n<td>true<\/td>\n<td>\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e ID<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<div class=\"et_pb_module et_pb_text et_pb_text_5  et_pb_text_align_left et_pb_bg_layout_light\">\n<div class=\"et_pb_text_inner\">\n<h3>\u30ec\u30b9\u30dd\u30f3\u30b9\u306e\u5185\u5bb9<\/h3>\n<p>\u30ec\u30b9\u30dd\u30f3\u30b9\u306b\u306f\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8 (\u30d5\u30a3\u30fc\u30eb\u30c9 \u30ec\u30a4\u30a2\u30a6\u30c8) \u306e\u914d\u5217\u304c\u542b\u307e\u308c\u307e\u3059\u3002\u5404\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306b\u306f\u3001\u4e00\u610f\u306e ID \u3068\u540d\u524d\u304c\u3042\u308a\u307e\u3059\u3002<code class=\"inline-code\">is_default<\/code> \u30d5\u30a3\u30fc\u30eb\u30c9\u306f\u3001\u30c7\u30d5\u30a9\u30eb\u30c8 \u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306e\u5834\u5408\u306f <code class=\"inline-code\">true<\/code>\u3001\u305d\u308c\u4ee5\u5916\u306e\u5834\u5408\u306f <code class=\"inline-code\">false<\/code> \u3067\u3059\u3002<\/p>\n<\/div>\n<\/div>\n<div class=\"et_pb_module et_pb_code et_pb_code_1 docs-code-block\">\n<div class=\"et_pb_code_inner\">\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"json\">[\n    {\n        \"id\": 1,\n        \"name\": \"Test Case (Text)\",\n        \"is_default\": true\n    },\n    {\n        \"id\": 2,\n        \"name\": \"Test Case (Steps)\",\n        \"is_default\": false\n    },\n    {\n        \"id\": 3,\n        \"name\": \"Exploratory Session\",\n        \"is_default\": false\n    }\n]<\/pre>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<h3 id=\"01G68JZ4AMW2EVBMQNCG0SNSJE\">\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\u30f3\u30d7\u30ec\u30fc\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\u30d7\u30ed\u30b8\u30a7\u30af\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<\/tbody>\n<\/table>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8(\u30c6\u30b9\u30c8 \u30b1\u30fc\u30b9\/\u7d50\u679c\u306e\u30d5\u30a3\u30fc\u30eb\u30c9 \u30ec\u30a4\u30a2\u30a6\u30c8) \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_templates TestRail 5.2 \u4ee5\u964d\u304c\u5fc5\u8981\u3067\u3059\u3002 project_id [&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-21375","page","type-page","status-publish","hentry"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-json\/wp\/v2\/pages\/21375","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=21375"}],"version-history":[{"count":10,"href":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-json\/wp\/v2\/pages\/21375\/revisions"}],"predecessor-version":[{"id":21389,"href":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-json\/wp\/v2\/pages\/21375\/revisions\/21389"}],"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=21375"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}