- Welcome 👋
- Get Started
- Create Your First App
- Authorization
- Webhooks
- Conditional Webhooks
- Security Considerations
- Multi-Language Support
- Responses
- Pagination
- Rate Limiting
- Versioning
- Change Log
- Support
- APIs
- Orders
- Order Status
- Order Histories
- Order Tags
- Order Invoice
- Order Reservations
- Order Items
- Products
- Product Options
- Product Quantity
- Product Variants
- Product Tags
- Product Images
- Product Option Values
- Abandoned Carts
- Customer Groups
- Customers
- Digitals Product
- Categories
- Exports
- Shipments
- Shipping Companies
- Shipping Zones
- Shipping Rules
- Countries
- Product Option Templates
- Taxes
- Coupons
- Affiliates
- Order Assignment
- Special Offers
- Transactions
- Payments
- Settlements
- Settings
- Merchant
- Brands
- Reviews
- Branches
- Currencies
- SEO
- Cities
- DNS Records
- Languages
- Employees
- Advertisements
- Webhooks
- Custom URLs
- Loyalty Points
- Webhooks - Store Events
Update Option Template
Production
Production
PUT
https://api.salla.dev/admin/v2/products/options/templates/{id}
Product Option Templates
Last modified:2025-02-04 09:20:03
id
as a path parameter.Scopes
products.read_write
- Products Read and WriteRequest
Authorization
Add the parameter
Authorization
to Headers,whose value is to concatenate the Token after the Bearer.Example:
Authorization: Bearer ********************
Path Params
id
integerÂ
required
Example:
956236464
Body Params application/json
name
stringÂ
optional
display_type
enum<string>Â
optional
Allowed values:
textimagecolor
translations
objectÂ
optional
en
objectÂ
optional
fr
objectÂ
optional
details
objectÂ
required
with=details
query paramter is passedid
numberÂ
required
name
stringÂ
required
is_default
booleanÂ
required
display_value
stringÂ
required
translation
objectÂ
required
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
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT 'https://api.salla.dev/admin/v2/products/options/templates/956236464' \
--header 'Content-Type: application/json' \
--data-raw '{
"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"
}
}
}
]
}'
Responses
🟢200Success
application/json
Body
status
numberÂ
optional
success
booleanÂ
optional
data
object (OptionsTemplate)Â
optional
id
stringÂ
required
name
stringÂ
required
type
enum<string>Â
required
Allowed values:
checkboxradio
display_type
enum<string>Â
required
Allowed values:
textimagecolor
translations
objectÂ
required
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"
}
]
}
}
🟠401Unauthorized
Modified at 2025-02-04 09:20:03