Update Product Attributes
ProductUpdateProductAttributesResponse Products.UpdateProductAttributes(ProductUpdateProductAttributesParamsparameters, CancellationTokencancellationToken = default)
PUT/api/v2/public/products/attributes
Replaces one attribute value across every product that carries it, for example when a brand is renamed in the source system. attribute accepts only product_name, brand_code, brand_description or volume; any other name is ignored and the call still reports success. Matching is on the whole value, not a partial one.
Update Product Attributes
ProductUpdateProductAttributesParams parameters = new()
{
Attribute = "x",
NewValue = "x",
OldValue = "x",
};
var response = await client.Products.UpdateProductAttributes(parameters);
Console.WriteLine(response);{
"data": true,
"code": 0,
"message": "message",
"status": "status"
}{
"code": 401,
"status": "error",
"message": "Authentication failed.",
"error": "unauthorized",
"error_description": "Authentication failed."
}{
"code": 500,
"status": "fail",
"message": "The request could not be processed.",
"error": "internal_error",
"error_description": "The request could not be processed."
}Returns Examples
{
"data": true,
"code": 0,
"message": "message",
"status": "status"
}{
"code": 401,
"status": "error",
"message": "Authentication failed.",
"error": "unauthorized",
"error_description": "Authentication failed."
}{
"code": 500,
"status": "fail",
"message": "The request could not be processed.",
"error": "internal_error",
"error_description": "The request could not be processed."
}