Get attributes update structure
Gets the structure for updating product characteristics in the UpdateProductsAttributes function()
Function GetAttributesUpdateStructure(Val Clear = False) Export
Parameter | CLI option | Type | Required | Description |
---|---|---|---|---|
Clear | --empty | Boolean | ✖ | True > structure with empty valuse, False > field descriptions at values |
Returns: Structure of KeyAndValue - Product fields structure
tip
Attributes are structures with complex_id, id and values fields. For their quick creation there is the CompleteComplexAttribute method()
1C:Enterprise/OneScript code example
Result = OPI_Ozon.GetAttributesUpdateStructure();
- Bash
- CMD/Bat
oint ozon GetAttributesUpdateStructure \
--empty false
oint ozon GetAttributesUpdateStructure ^
--empty false
Result
{
"offer_id": "<article>",
"attributes": "<array of updatable attributes>"
}