updateTemplatePage
Update HTML and CSS source for a specified page type in a template. Provide template ID, page type (index/top/product/etc.), and new content. Changes are automatically recorded in history and parent template's update date is refreshed.
Instructions
指定テンプレートの指定ページ種別の HTML / CSS ソースを更新します。template_id でテンプレートを特定、page_type は getTemplatePage と同じ 8 種の enum(index / top / product / product_list / product_srh / option_stock / shopkeeper / privacy)から指定、template_page に新しい HTML / CSS の本文を渡します。更新時にテンプレートの変更履歴が自動記録され、親テンプレートの update_date も更新されます。更新前の現在値は getTemplatePage、ブラウザ表示は getTemplatePreview、テンプレート一覧は getTemplates を参照。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| template_id | Yes | テンプレートID | |
| page_type | Yes | ページ種別 - `index`: 共通 - `top`: トップ - `product_list`: 商品一覧 - `product`: 商品詳細 - `shopkeeper`: 特定商取引 - `product_srh`: 商品検索結果 - `option_stock`: オプション在庫・値段表 - `privacy`: プライバシーポリシー | |
| template_page | Yes |