saveProductGroup

This call is deprecated. We recommend to use PIM API instead.

The corresponding new call is: POST /v1/product/group.

Create or update a product group.

Input parameters

Parameter name Description Possible value Required
productGroupID Product group ID if you need to change existing group integer
name Product group name. Use either general parameter "name" or one or more of the following parameters if you need to set the names in specific languages. string
nameEST string
nameENG string
nameLAT string
nameRUS string
nameFIN string
parentGroupID If group belongs to other group then include this parameter as parent group ID integer
showInWebshop If set to 1, this item is displayed in webshop. By default 1. 0 or 1
nonDiscountable Set the value to 1 if this group's products and sub-groups must be non-discountable. Flag presently only applies to promotion discounts, product still can be discounted manually or using price list. 0 or 1
***** Additional attributes associated with this item.
Attributes must be supplied as a flat list, each attribute defined by the following set of three parameters. Replace # with set number (1, 2, 3, ...). When updating an existing entry, API will only update the attributes specified in input data and leave all other existing attributes unchanged. To delete an attribute, set its value to 'null' or 'undefined'.
attributeName# Attribute name. Name can only contain the following symbols: A-Z, a-z, 0-9, dash and underscore. string
attributeType# Attribute type, possible types are 'text', 'int' and 'double'. By default 'text'. string
attributeValue# Value of the attribute. Set value to 'null' or 'undefined' to delete an attribute.
'text' attribute can be any string, maximum 255 characters.
'int' must be a signed 32-bit integer.
'double' must be a decimal number.
string

Response

Field name Type Description
productGroupID integer ID of the created/updated item.