PATCH
/hyax-api/v1/products/:id/variants/:variantIdUpdate variant
Partial update. Changing `sku` changes the variant's public buy URL, so any link already shared stops resolving by code (the row id keeps working).
Base URL: https://platform.hyax.com · Replace YOUR_API_KEY with your team API key.
Request body
| Field | Required | Description |
|---|---|---|
sku | No | SKU code, unique per product |
title | No | Display label, or null to fall back to the code |
price | No | Number or null |
inventory | No | Number, or null for unlimited |
weight | No | Number or null |
image | No | Image URL or null |
unitsGranted | No | Number or null |
options | No | Move the variant to a different combination, by name |
Request
curl -X PATCH 'https://platform.hyax.com/hyax-api/v1/products/clx_example_id/variants/:variantId' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"price": 32,
"inventory": 40
}'Response
{
"success": true,
"data": {
"id": "clx…",
"sku": "BLACK-XL",
"price": 32,
"inventory": 40,
"isSoldOut": false,
"buyUrl": "https://shop.example.com/buy/studio-tee?variant=BLACK-XL"
}
}