Authorization: Bearer ********************curl --location 'https://api.hyperzod.app/merchant/v1/catalog/product-option/update' \
--header 'x-tenant: 42' \
--header 'x-client-device: web' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"merchant_id": "64b7f2a9c1e4d5038a6b9120",
"name": "Dressings",
"status": true,
"product_option": {
"type": "linked",
"language_translation": [
{
"key": "option_name",
"locale": "en",
"value": "Choose A Dressing"
}
],
"selection_type": "single",
"is_required": false,
"view_type": "list",
"options": [
{
"language_translation": [
{
"key": "name",
"locale": "en",
"value": "Ranch"
}
],
"price_buy": 0.25,
"price_sell": 0.5,
"is_description_enabled": false,
"is_quantity_enabled": false
}
]
},
"id": "64b7f2a9c1e4d5038a6b9125"
}'{
"success": true,
"service": "catalog",
"status_code": 200,
"data": {
"tenant_id": 42,
"merchant_id": "64b7f2a9c1e4d5038a6b9120",
"name": "Dressings",
"status": true,
"product_option_id": "64b7f2a9c1e4d5038a6b9125",
"_id": "64b7f2a9c1e4d5038a6b9125",
"product_option": {
"type": "linked",
"language_translation": [
{
"key": "option_name",
"locale": "en",
"value": "Choose A Dressing"
}
],
"selection_type": "single",
"is_required": false,
"view_type": "list",
"options": [
{
"language_translation": [
{
"key": "name",
"locale": "en",
"value": "Ranch"
}
],
"price_buy": 0.25,
"price_sell": 0.5,
"is_description_enabled": false,
"is_quantity_enabled": false
}
]
}
}
}