Creating a new product template

POST {{api-url}}/product/{{tenant}}/product-templates

Preview Creates a new product template. 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"=>false}, "values"=>[{"key"=>"WHITE"}, {"key"=>"RED"}, {"key"=>"BLACK"}]}, {"key"=>"size", "name"=>{"en"=>"Size"}, "type"=>"TEXT", "metadata"=>{"mandatory"=>false, "defaultValue"=>nil, "variantAttribute"=>false}, "values"=>[{"key"=>"L"}, {"key"=>"M"}, {"key"=>"S"}]}]}

HEADERS

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

RESPONSES

status: Created

{"id":"624c3e7c3406122baacc7e93"}