Update a material set in the catalog
Url:
api/merchantMaterialSet/{id}
{id} - set id
Method PUT
Body:
{
"materials": [21024,21033],
"en_name": "test22",
"ru_name": "тест22",
"name": "en_name",
"default": "21033",
"position": 1
}
Fields:
en_name - set name written in the main language for the website.
In this case, is English (en_name), but it could be any other language (i.e. Ukrainian - ua_name).
materials - list of the material ids for set
default - id of default material in material set
position - position of set or subset
en_name / ua_name / de_name ... - names in other languages (optional fields, used in case if site supports several languages)
We support these languages for now:
en_name - English
ua_name - Ukrainian
ru_name - Russian
de_name - German (Deutch)
pl_name - Polish
x-token: 202cb962ac59075b964b07152d234b70
x-token: 202cb962ac59075b964b07152d234b70
Response:
{
"status": "ok",
"data": "50"
}
As result update set id obtained