Skip to main content

Get attributes update structure

Gets the structure for updating product characteristics in the UpdateProductsAttributes function()

Function GetAttributesUpdateStructure(Val Clear = False) Export

ParameterCLI optionTypeDescription
Clear--emptyBooleanTrue > 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()


Code example
    Result = OPI_Ozon.GetAttributesUpdateStructure();
CLI command example
    
oint ozon GetAttributesUpdateStructure --empty %empty%

Result
{
"offer_id": "<article>",
"attributes": "<array of updatable attributes>"
}