Skip to content
Get started

Updates a product attribute value across all products matching the old value.

Products.UpdateProductAttributes(ProductUpdateProductAttributesParamsparameters, CancellationTokencancellationToken = default)
PUT/api/v2/public/products/attributes

Updates a product attribute value across all products matching the old value.

ParametersExpand Collapse
ProductUpdateProductAttributesParams parameters
required string attribute

The attribute name to update.

required string newValue

The new value to set.

required string oldValue

The current value to match.

Updates a product attribute value across all products matching the old value.

ProductUpdateProductAttributesParams parameters = new()
{
    Attribute = "category_code",
    NewValue = "CAT-NEW",
    OldValue = "CAT-OLD",
};

await client.Products.UpdateProductAttributes(parameters);
Returns Examples