update-product
Modify Shopify product details including title, description, SEO, status, vendor, type, tags, and variants using product ID for precise updates.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
descriptionHtml | No | The new HTML description for the product | |
productId | Yes | The GID of the product to update (e.g., "gid://shopify/Product/1234567890") | |
productType | No | The type or category of the product | |
seo | No | SEO information for the product | |
status | No | Product status (ACTIVE, ARCHIVED, or DRAFT) | |
tags | No | Array of tags to categorize the product | |
title | No | The new title for the product | |
variants | No | Product variants to update | |
vendor | No | The vendor or manufacturer of the product |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"descriptionHtml": {
"description": "The new HTML description for the product",
"type": "string"
},
"productId": {
"description": "The GID of the product to update (e.g., \"gid://shopify/Product/1234567890\")",
"minLength": 1,
"type": "string"
},
"productType": {
"description": "The type or category of the product",
"type": "string"
},
"seo": {
"additionalProperties": false,
"description": "SEO information for the product",
"properties": {
"description": {
"description": "SEO meta description for the product",
"type": "string"
},
"title": {
"description": "SEO-optimized title for the product",
"type": "string"
}
},
"type": "object"
},
"status": {
"description": "Product status (ACTIVE, ARCHIVED, or DRAFT)",
"enum": [
"ACTIVE",
"ARCHIVED",
"DRAFT"
],
"type": "string"
},
"tags": {
"description": "Array of tags to categorize the product",
"items": {
"type": "string"
},
"type": "array"
},
"title": {
"description": "The new title for the product",
"type": "string"
},
"variants": {
"description": "Product variants to update",
"items": {
"additionalProperties": false,
"properties": {
"barcode": {
"description": "Barcode (ISBN, UPC, GTIN, etc.)",
"type": "string"
},
"compareAtPrice": {
"description": "Compare at price for showing a markdown",
"type": "string"
},
"fulfillmentService": {
"description": "Service responsible for fulfilling the variant",
"type": "string"
},
"id": {
"description": "The GID of the variant to update",
"type": "string"
},
"inventoryPolicy": {
"description": "What happens when a variant is out of stock",
"enum": [
"DENY",
"CONTINUE"
],
"type": "string"
},
"inventoryQuantity": {
"description": "Available inventory quantity",
"type": "number"
},
"price": {
"description": "The price of the variant",
"type": "string"
},
"sku": {
"description": "Stock keeping unit (SKU)",
"type": "string"
},
"weight": {
"description": "Weight of the variant",
"type": "number"
},
"weightUnit": {
"description": "Unit of weight measurement",
"enum": [
"KILOGRAMS",
"GRAMS",
"POUNDS",
"OUNCES"
],
"type": "string"
}
},
"type": "object"
},
"type": "array"
},
"vendor": {
"description": "The vendor or manufacturer of the product",
"type": "string"
}
},
"required": [
"productId"
],
"type": "object"
}