Light Mode
Update Option Template
PUT
/products/options/templates/{id}Last modified: 4 days ago
This endpoint allows you to update a specific product option template by passing the id
as a path parameter.
Request
Path Params
id
integer
required
A unique identifier of the product option template.
Example:
956236464
Body Params application/json
object {0}
Example
{
"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
Responses
Success(200)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
No schema defined
Example
{
"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"
}
]
}
}
Last modified: 4 days ago