Update Product Attribute value
Request Parameters:
Update Product Attribute Value with specific product attribute mapping:
URL for nopCommerce 4.10 :
Api/Admin/UpdateProductAttributeValue
Headers :
Content-Type : application/json
Parameter: Required [ProductAttributeValueId]
{
"ApiSecretKey" :"k104r106p102g98k116q107x114x118" ,
"RestAPIAdminAccessKey" :"4fbdf629-be68-4371-a81d-4b191c98a52e",
"ProductAttributeValueId":"44",
"ProductAttributeValueModel":
{
"ProductAttributeMappingId": "19",
"AttributeValueTypeId": "0",
"AssociatedProductId": "0",
"Name": "Attribute Value",
"PriceAdjustment": "25",
"WeightAdjustment": "5",
"Cost": "10",
"Quantity": "7",
"IsPreSelected": "true",
"DisplayOrder": "4",
"PictureId": "4",
"LanguageId": "1"
}
}
NOTE :- If needed pass Locales parameter as "Locales":[{"LanguageId": "1", "Name": "abc"}] after "PictureId" in above request
Response :
{
"ProductAttributeMappingId": 19,
"AttributeValueTypeId": 0,
"AttributeValueTypeName": "Simple",
"AssociatedProductId": 0,
"AssociatedProductName": null,
"Name": "Attribute Value",
"ColorSquaresRgb": null,
"DisplayColorSquaresRgb": false,
"ImageSquaresPictureId": 0,
"DisplayImageSquaresPicture": false,
"PriceAdjustment": 25,
"PriceAdjustmentStr": null,
"PriceAdjustmentUsePercentage": false,
"WeightAdjustment": 5,
"WeightAdjustmentStr": null,
"Cost": 10,
"CustomerEntersQty": false,
"Quantity": 7,
"IsPreSelected": true,
"DisplayOrder": 4,
"PictureId": 4,
"PictureThumbnailUrl": null,
"ProductPictureModels": [
{
"ProductId": 3,
"PictureId": 23,
"PictureUrl": "http://localhost:98/images/thumbs/0000023_lenovo-ideacentre-600-all-in-one-pc.jpeg",
"DisplayOrder": 1,
"OverrideAltAttribute": null,
"OverrideTitleAttribute": null,
"Id": 4,
"Form": null,
"CustomProperties": {}
}
],
"Locales": [],
"Id": 44,
"Form": null,
"CustomProperties": {}
}