Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Update a variant of a product.
curl -X POST 'http://localhost:9000/admin/products/prod_01HXYZABCDEF/variants/variant_01HXYZABCDEF' \ -H 'Authorization: Bearer <token>' \ -H 'Content-Type: application/json' \ -d '{"sku": "LS-M-2026"}'
const { product } = await client.admin.products.$id.variants.$variant_id.mutate({ $id: "prod_01HXYZABCDEF", $variant_id: "variant_01HXYZABCDEF", sku: "LS-M-2026", })
{ "product": { "id": "prod_01HXYZABCDEF", "title": "Linen Shirt", "variants": [ { "id": "variant_01HXYZABCDEF", "title": "M", "sku": "LS-M-2026" } ] } }
Show properties