This endpoint allows you to update an existing feature and add or modify its variants (values).
Important: Marketplace administrator credentials are required to use this endpoint.
Path Parameters
Parameter
Type
Description
feature_id*
string
ID of the feature to update
Request Headers
Header
Value
Description
Authorization
Basic Auth
Base64 encoded username:password combination
Request Body Parameters
Parameter
Type
Required
Description
feature_type*
string
Yes
Always set to "S"
for a select box feature
description*
string
Yes
Name of the feature (e.g., "Size", "Color", "Material")
status*
string
Yes
Set to "A"
for activated or "D"
for deactivated
variants*
array
Yes
Array of variants (values) for the feature. Each variant object must have a variant
property with the variant's name
Example Request
Copy {
"feature_type" : "S" ,
"description" : "Size" ,
"status" : "A" ,
"variants" : [
{
"variant" : "37/38"
},
{
"variant" : "39/40"
}
]
}
Response
The endpoint returns status information about the updated feature.
Example Response
Copy {
"feature_id" : "14" ,
"status" : "success" ,
"message" : "Feature updated successfully"
}
Tip: When updating a feature, you need to include all variants you want to associate with it. Any existing variants not included in the request will be removed.