## 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.

### Parameters

- `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.

### Example

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

await client.Products.UpdateProductAttributes(parameters);
```
