Update Value
PUT {{baseUrl}}/products/options/values/:value
You can update value details in specific option for a specific product by providing the ID of the value you want to update its details in the value path parameter.
Request Body
{"name"=>"XzL", "price"=>121, "display_value"=>"xzzl"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: Created
{"status":201,"success":true,"data":{"id":667315336,"name":"salvalueupdated","price":{"amount":0,"currency":"SAR"},"display_value":"","option_id":1833119338,"image_url":"https://i.ibb.co/jyqRQfQ/avatar-male.webp","hashed_display_value":"","skus":[{"id":652911549,"price":{"amount":110,"currency":"SAR"},"regular_price":{"amount":234,"currency":"SAR"},"sale_price":{"amount":100,"currency":"SAR"},"stock_quantity":13,"barcode":"barcode-ABC","sku":"sku-variant-1551119600","related_option_values":[667315336,322122678,569679762,1318371393]},{"id":1966914519,"price":{"amount":9.9,"currency":"SAR"},"regular_price":{"amount":0,"currency":"SAR"},"sale_price":{"amount":100,"currency":"SAR"},"stock_quantity":20,"barcode":"","sku":"23-TD23-32","related_option_values":[667315336,322122678,1552401892,1318371393]},{"id":1799056677,"price":{"amount":9.9,"currency":"SAR"},"regular_price":{"amount":0,"currency":"SAR"},"sale_price":{"amount":100,"currency":"SAR"},"stock_quantity":20,"barcode":"","sku":"23-TD23-32","related_option_values":[667315336,322122678,1209980149,1318371393]},{"id":673658412,"price":{"amount":9.9,"currency":"SAR"},"regular_price":{"amount":0,"currency":"SAR"},"sale_price":{"amount":100,"currency":"SAR"},"stock_quantity":20,"barcode":"","sku":"23-TD23-32","related_option_values":[667315336,322122678,393917653,1318371393]}]}}