PUT /api/v1/products/:product_id/variants/:id
update any attribute of the specified variant
Params
Param name | Description |
---|---|
product_id required |
Parent product id, name or source_id Must be a String or an Integer |
id required |
Variant id, name or source_id Must be a String or an Integer |
source_id optional |
ID in Customer’s source system (optional, max 255 char.) Must be a String |
reference optional |
internal reference - length must be 255 characters maximum and unique in the scope of the company Must be a String |
material optional |
material - length must be 255 characters maximum Must be a String |
brand optional |
brand - length must be 255 characters maximum Must be a String |
color optional |
color - length must be 255 characters maximum Must be a String |
size optional |
size - length must be 255 characters maximum Must be a String |
washcare optional |
washcare - length must be 255 characters maximum Must be a String |
description optional |
description Must be a String |
dimensions optional |
dimensions - length must be 255 characters maximum Must be a String |
theme optional |
theme - length must be 255 characters maximum Must be a String |
collection optional |
collection - length must be 255 characters maximum Must be a String |
formula optional |
formula - length must be 255 characters maximum Must be a String |
target_store_date optional |
target store date, format Y-m-d Must be a String |
owner optional |
Product’s owner. If not set, default to current user. Cannot be set if current user is not company admin (current user fallback) A Winddle User. Can be either a user ID (unique integer) or a user Email. |
image optional |
image displayed in product profile Multipart encoded file |
customs optional |
Custom values for the Product An array of Custom Values for the Product. Each element of this array should have the following format:
Not providing a value for a Field will leave it as blank or keep its current value if any has been set. |
status optional |
Default values OR own company product status id/name Must be one of:validated , draft , sample .
|