update_product
Modify Shopify product details including titles, descriptions, variants, inventory, and images. Use this tool to update essential data like status, vendor, and tags for streamlined product management.
Instructions
商品を更新する
Input Schema
Name | Required | Description | Default |
---|---|---|---|
body_html | No | 商品の説明(HTML形式) | |
images | No | 画像 | |
options | No | オプション | |
product_id | Yes | 商品ID | |
product_type | No | 商品タイプ | |
status | No | ステータス | |
tags | No | タグ(カンマ区切り) | |
title | No | 商品名 | |
variants | No | バリエーション | |
vendor | No | ベンダー名 |
Input Schema (JSON Schema)
{
"properties": {
"body_html": {
"description": "商品の説明(HTML形式)",
"type": "string"
},
"images": {
"description": "画像",
"items": {
"properties": {
"alt": {
"description": "代替テキスト",
"type": "string"
},
"id": {
"description": "画像ID",
"type": "number"
},
"src": {
"description": "画像URL",
"type": "string"
}
},
"required": [
"src"
],
"type": "object"
},
"type": "array"
},
"options": {
"description": "オプション",
"items": {
"properties": {
"id": {
"description": "オプションID",
"type": "number"
},
"name": {
"description": "オプション名",
"type": "string"
},
"position": {
"description": "オプション順番",
"position": "number"
},
"values": {
"description": "オプション値",
"items": {
"type": "string"
},
"type": "array"
}
},
"required": [
"name",
"values"
],
"type": "object"
},
"type": "array"
},
"product_id": {
"description": "商品ID",
"type": "number"
},
"product_type": {
"description": "商品タイプ",
"type": "string"
},
"status": {
"description": "ステータス",
"enum": [
"active",
"draft",
"archived"
],
"type": "string"
},
"tags": {
"description": "タグ(カンマ区切り)",
"type": "string"
},
"title": {
"description": "商品名",
"type": "string"
},
"variants": {
"description": "バリエーション",
"items": {
"properties": {
"id": {
"description": "バリエーションID",
"type": "number"
},
"inventory_quantity": {
"description": "在庫数",
"type": "number"
},
"option1": {
"description": "オプション1の値",
"type": "string"
},
"option2": {
"description": "オプション2の値",
"type": "string"
},
"option3": {
"description": "オプション3の値",
"type": "string"
},
"price": {
"description": "価格",
"type": "string"
},
"sku": {
"description": "SKU",
"type": "string"
}
},
"type": "object"
},
"type": "array"
},
"vendor": {
"description": "ベンダー名",
"type": "string"
}
},
"required": [
"product_id"
],
"type": "object"
}