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 = "137";
Result = OPI_VK.EditProductCollection(Name, Selection, , , , Parameters);
OPI_TestDataRetrieval.Check_VKTrue(Result);
OPI_Tools.Pause(5);
- Bash
- CMD/Bat
# JSON data can also be passed as a path to a .json file
oint vk EditProductCollection \
--title "EditedCollection" \
--sel 137 \
--auth "{'access_token':'***','owner_id':'-218861756','app_id':'51694790','group_id':'218861756'}"
:: JSON data can also be passed as a path to a .json file
oint vk EditProductCollection ^
--title "EditedCollection" ^
--sel 137 ^
--auth "{'access_token':'***','owner_id':'-218861756','app_id':'51694790','group_id':'218861756'}"
Result
{
"response": 1
}