Request Parameters:


Insert product attribute value with specific product attribute mapping


URL  for nopCommerce 4.10 :

Api/Admin/InsertProductAttributeValue


Headers :

Content-Type : application/json


Parameter:
{
       "ApiSecretKey" :"k104r106p102g98k116q107x114x118" ,
       "RestAPIAdminAccessKey" :"4fbdf629-be68-4371-a81d-4b191c98a52e",
       "VendorId": "0",
       "ProductAttributeValueModel":
{
                              "ProductAttributeMappingId": "19",
                              "AttributeValueTypeId": "0",
                              "AssociatedProductId": "0",
                              "Name": "New Attribute Value",
                              "PriceAdjustment": "4",
                              "WeightAdjustment": "5",
                              "Cost": "10",
                              "Quantity": "7",
                              "IsPreSelected": "true",
                              "DisplayOrder": "17",
                              "PictureId": "3",
                              "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": "New Attribute Value",
   "ColorSquaresRgb": null,
   "DisplayColorSquaresRgb": false,
   "ImageSquaresPictureId": 0,
   "DisplayImageSquaresPicture": false,
   "PriceAdjustment": 4,
   "PriceAdjustmentStr": null,
   "PriceAdjustmentUsePercentage": false,
   "WeightAdjustment": 5,
   "WeightAdjustmentStr": null,
   "Cost": 10,
   "CustomerEntersQty": false,
   "Quantity": 7,
   "IsPreSelected": true,
   "DisplayOrder": 17,
   "PictureId": 3,
   "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": 41,
   "Form": null,
   "CustomProperties": {}
}