Skip to main content

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

ParameterCLI optionTypeRequiredDescription
Name--titleStringNew selection name
Selection--selStringSelection ID
Image--pictureString, BinaryDataNew selection image
Main--mainBooleanMain
Hidden--hiddenBooleanHidden
Parameters--authStructure Of StringAuthorization 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);
    # 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
}