Updating a product template

PUT {{api-url}}/product/{{tenant}}/product-templates/{{product-template-id}}

Preview Updates an existing product template. Every product template update causes creating a new version of product template. Products created in previous versions are not automaticaly updated. In order to see the changes (for example new attributes) on product level, updating the product template version on product level is required. The product template defines a set of attributes which are common for all product instances based on the product template.

Request Body

{"name"=>{"en"=>"T-shirt"}, "attributes"=>[{"key"=>"color", "name"=>{"en"=>"Color"}, "type"=>"TEXT", "metadata"=>{"mandatory"=>false, "defaultValue"=>nil, "variantAttribute"=>true}, "values"=>[{"key"=>"GREEN"}, {"key"=>"RED"}]}], "metadata"=>{"version"=>1}}

HEADERS

KeyDatatypeRequiredDescription
Content-LanguagestringThe Content-Language request HTTP header defines language(s) of the payload.
Content-Typestring
Acceptstring