Create Option Template
POST
/products/options/templatesThis endpoint allows you create a new option template.
Request
Use with=details
to fetch list of product option templates with details
object.
Option name.
Type of product option.
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": "image url",
"display_type": "image",
"translations": {
"en": {
"name": "color"
},
"fr": {
"name": "couleur"
}
},
"details": [
{
"name": "profile pic",
"is_default": true,
"display_value": "fb.com",
"translations": {
"en": {
"name": "pic"
},
"fr": {
"name": "pic"
}
}
}
]
}
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": 201,
"success": true,
"data": [
{
"id": 1473353380,
"name": "اللون",
"type": "radio",
"display_type": "color",
"translations": [
{
"id": 1473353380,
"name": "color",
"locale": "en"
},
{
"id": 566146469,
"name": "color",
"locale": "fr"
}
]
}
]
}