Edit product selection
Edits the properties of a product selection
Function EditProductCollection(Val Name, Val Selection, Val Image = "", Val Main = False, Val Hidden = False, Val Parameters = "") Export
Parameter | CLI option | Type | Required | Description |
---|---|---|---|---|
Name | --title | String | ✔ | New selection name |
Selection | --sel | String | ✔ | Selection ID |
Image | --picture | String, BinaryData | ✖ | New selection image |
Main | --main | Boolean | ✖ | Main |
Hidden | --hidden | Boolean | ✖ | Hidden |
Parameters | --auth | Structure Of String | ✖ | Authorization JSON or path to .json |
Returns: Map Of KeyAndValue - serialized JSON response from VK
tip
Parameters with Binary data type can also accept file paths on disk and URLs
1C:Enterprise/OneScript code example
Parameters = GetVKParameters();
Name = "EditedCollection";
Selection = "142";
Result = OPI_VK.EditProductCollection(Name, Selection, , , , Parameters);
- Bash
- CMD/Bat
oint vk EditProductCollection \
--title ""EditedCollection"" \
--sel "147" \
--auth ""/tmp/ayz4bnjr.4tx.json""
oint vk EditProductCollection ^
--title ""EditedCollection"" ^
--sel "147" ^
--auth ""/tmp/ayz4bnjr.4tx.json""
Result
{
"response": 1
}