Updates a product attribute value across all products matching the old value.
products.update_product_attributes(ProductUpdateProductAttributesParams**kwargs)
PUT/api/v2/public/products/attributes
Updates a product attribute value across all products matching the old value.
Parameters
attribute: str
The attribute name to update.
new_value: str
The new value to set.
old_value: str
The current value to match.
Updates a product attribute value across all products matching the old value.
import os
from colleqtive_sdk import Colleqtive
client = Colleqtive(
bearer_token=os.environ.get("COLLEQTIVE_BEARER_TOKEN"), # This is the default and can be omitted
)
client.products.update_product_attributes(
attribute="category_code",
new_value="CAT-NEW",
old_value="CAT-OLD",
)