1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-03-07 15:20:39 +02:00
OpenIntegrations/docs/en/md/VK/Product-properties-management/Edit-product-property-variant.md

53 lines
1.1 KiB
Markdown
Raw Normal View History

---
sidebar_position: 6
---
# Edit product property variant
Edits the value of an existing product property variant
2024-07-10 13:58:29 +03:00
`Function EditProductPropertyVariant(Val Value, Val Property, Val Option, Val Parameters = "") Export`
| Parameter | CLI option | Type | Description |
|-|-|-|-|
| Value | --value | String | New property value |
| Property | --prop | String, Number | Property ID |
| Option | --option | String, Number | Variant ID |
| Parameters | --auth | Structure Of String | Authorization JSON or path to .json |
Returns: Map Of KeyAndValue - Serialized JSON response from VK
2024-07-10 14:05:58 +03:00
<br/>
2024-07-10 13:58:29 +03:00
```bsl title="Code example"
Parameters = GetVKParameters();
Property = FunctionParameters["VK_PropID"];
Option = FunctionParameters["VK_PropVarID1"];
Value = "New variant name";
Result = OPI_VK.EditProductPropertyVariant(Value
, Property
, Option
, Parameters);
```
```sh title="CLI command example"
oint vk EditProductPropertyVariant --value %value% --prop "648" --option "2054" --auth "GetVKParameters()"
```
```json title="Result"
2024-07-10 14:11:17 +03:00
{
"response": 1
}
```