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.

minLength1
required string newValue

The new value to set.

minLength1
required string oldValue

The current value to match.

minLength1

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

ProductUpdateProductAttributesParams parameters = new()
{
    Attribute = "x",
    NewValue = "x",
    OldValue = "x",
};

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