mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2024-12-02 09:21:37 +02:00
49 lines
1.1 KiB
Plaintext
49 lines
1.1 KiB
Plaintext
---
|
|
sidebar_position: 5
|
|
---
|
|
|
|
import Tabs from '@theme/Tabs';
|
|
import TabItem from '@theme/TabItem';
|
|
|
|
# Edit product
|
|
Edits a previously created product
|
|
|
|
|
|
|
|
`Function EditProduct(Val Product, Val ProductDescription, Val Selection = "", Val Parameters = "") Export`
|
|
|
|
| Parameter | CLI option | Type | Required | Description |
|
|
|-|-|-|-|-|
|
|
| Product | --item | Number, String | ✔ | Identifier of the product being edited |
|
|
| ProductDescription | --product | Map Of KeyAndValue | ✔ | JSON description of the product or path |
|
|
| Selection | --sel | String | ✖ | Identifier of the new selection, if needed |
|
|
| Parameters | --auth | Structure Of String | ✖ | Authorization JSON or path to .json |
|
|
|
|
|
|
Returns: Map Of KeyAndValue - serialized JSON response from VK
|
|
|
|
<br/>
|
|
|
|
|
|
|
|
|
|
```bsl title="1C:Enterprise/OneScript code example"
|
|
Parameters = GetVKParameters();
|
|
|
|
Product = "9756133";
|
|
|
|
ProductDescription = New Map;
|
|
ProductDescription.Insert("Name", "EditedTestProduct");
|
|
|
|
Result = OPI_VK.EditProduct(Product, ProductDescription, , Parameters);
|
|
```
|
|
|
|
|
|
|
|
|
|
```json title="Result"
|
|
{
|
|
"response": 1
|
|
}
|
|
```
|