Update Product Option Value

PUT {{baseUrl}}/products/options/values/:value

This endpoint allows you to update value details in a 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"=>"<string>", "price"=>"<number>", "quantity"=>"<integer>", "display_value"=>"<string>", "is_default"=>"<boolean>"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: Created

{&quot;status&quot;:&quot;\u003cnumber\u003e&quot;,&quot;success&quot;:&quot;\u003cboolean\u003e&quot;,&quot;data&quot;:{&quot;id&quot;:&quot;\u003cnumber\u003e&quot;,&quot;name&quot;:&quot;\u003cstring\u003e&quot;,&quot;price&quot;:{&quot;amount&quot;:&quot;\u003cnumber\u003e&quot;,&quot;currency&quot;:&quot;\u003cstring\u003e&quot;},&quot;formatted_price&quot;:&quot;\u003cstring\u003e&quot;,&quot;display_value&quot;:&quot;\u003cstring\u003e&quot;,&quot;advance&quot;:&quot;\u003cboolean\u003e&quot;,&quot;option_id&quot;:&quot;\u003cnumber\u003e&quot;,&quot;image_url&quot;:&quot;\u003cstring\u003e&quot;,&quot;hashed_display_value&quot;:&quot;\u003cstring\u003e&quot;,&quot;translations&quot;:{&quot;ar&quot;:{&quot;option_details_name&quot;:&quot;\u003cstring\u003e&quot;}},&quot;is_default&quot;:&quot;\u003cboolean\u003e&quot;,&quot;is_out_of_stock&quot;:&quot;\u003cboolean\u003e&quot;}}