Logo
Emporix Digital Commerce Platform API Documentation

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.

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 
Content-Language
string The Content-Language request HTTP header defines language(s) of the payload.
Content-Type
string
Accept
string




RESPONSES

status





Curl
curl -X PUT 'api-url/product/tenant/product-templates/product-template-id' -H 'Content-Language: *' -H 'Content-Type: application/json' -H 'Accept: application/json' -d '{"name":{"en":"T-shirt"},"attributes":[{"key":"color","name":{"en":"Color"},"type":"TEXT","metadata":{"mandatory":false,"defaultValue":null,"variantAttribute":true},"values":[{"key":"GREEN"},{"key":"RED"}]}],"metadata":{"version":1}}'

ENDPOINTS