Update a product variant
PUT /stores/{storeResourceId}/products/{productResourceId}/variants/{resourceId}
/stores/{storeResourceId}/products/{productResourceId}/variants/{resourceId}Changes the title, SKU, price, stock or addresses of a variant.
When to use: When the price or stock changes in the shop.
When not to use: To change the product itself use update_store_product.
Permissions: Requires the manager role or higher, or the marketing.audiences.write capability.
Value for the X-Auth-Token header parameter.
In: header
Path Parameters
Identifier (resource_id) of the store.
Identifier (resource_id) of the product the variant belongs to.
Identifier (resource_id) of the variant: the one you chose when you created it with create_product_variant.
The updated Variant resource
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X PUT "https://api.easymailing.com/stores/acme-shop/products/sneaker-01/variants/sneaker-01-42" \ -H "X-Auth-Token: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "title": "string", "sku": "string", "price": 0, "inventory_quantity": 0, "image_url": "http://example.com", "url": "http://example.com" }'{ "resource_id": "string", "title": "string", "sku": "string", "price": 0, "inventory_quantity": 0, "image_url": "http://example.com", "url": "http://example.com", "product": "/entity/1", "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z"}