Update Option Template
PUT
/products/options/templates/{id}This endpoint allows you to update a specific product option template by passing the id
as a path parameter.
Request
A unique identifier of the product option template.
Option name.
The manner in which product choices or attributes are presented.
Options presented in different languages.
Option Details. Visible if with=details
query paramter is passed
option ID
option value name
indicates if the value is default or not
Option Display value
Option display value translations
{
"name": "اللون",
"display_type": "color",
"translations": {
"en": {
"name": "color"
},
"fr": {
"name": "color"
}
},
"details": [
{
"name": "احمر غامق",
"is_default": false,
"display_value": "#3245",
"translations": {
"en": {
"name": "dark red"
},
"fr": {
"name": "dagc ged"
}
}
}
]
}
Request samples
[api.label.responses]
Response status code, a numeric or alphanumeric identifier used to convey the outcome or status of a request, operation, or transaction in various systems and applications, typically indicating whether the action was successful, encountered an error, or resulted in a specific condition.
Response flag, boolean indicator used to signal a particular condition or state in the response of a system or application, often representing the presence or absence of certain conditions or outcomes.
A unique identifier of the options template.
Option name.
Type of product option.
The manner in which product choices or attributes are presented.
Options presented in different languages based on the store's enabled locales.
{
"status": 200,
"success": true,
"data": {
"id": 956236464,
"name": "color 1",
"feature_type": "text",
"translations": [
{
"id": 1473353380,
"name": "color",
"locale": "en"
},
{
"id": 566146469,
"name": "color",
"locale": "fr"
}
]
}
}