Create Option Template
Production
https://api.salla.dev/admin/v2
Production
https://api.salla.dev/admin/v2
POST
https://api.salla.dev/admin/v2
Product Option Templates
Last modified:2025-02-04 11:02:03
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.salla.dev/admin/v2/products/options/templates?with=details' \
--header 'Content-Type: application/json' \
--data-raw '{
"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"
}
}
}
]
}'
Response Response Example
200 - Success
{
"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"
}
]
}
]
}
Request
Query Params
with
enum<string>
optional
with=details
to fetch list of product option templates with details
object.Allowed value:
details
Example:
details
Body Params application/json
Responses
Modified at 2025-02-04 11:02:03