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 optionTypeRequiredDescription
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()


1C:Enterprise/OneScript code example
    Result = OPI_Ozon.GetAttributesUpdateStructure();
    oint ozon GetAttributesUpdateStructure \
--empty false
Result
{
"offer_id": "<article>",
"attributes": "<array of updatable attributes>"
}