Does the REST API support updating multiple product attributes in a single call? If so, what would the request look like?
I tried this:
{
[{
Name: "Attribute1",
Value: "Foo"
},
{
Name: "Attribute2",
Value: "Bar"
}]
}
And got the following response:
HTTP/1.1 404 Not Found
Content-Length: 354
Content-Type: application/json; odata.metadata=minimal
Server: Microsoft-IIS/7.5
OData-Version: 4.0
X-ServerName: RDU-APPWEB-22
Date: Thu, 26 Mar 2015 22:58:49 GMT
{
"error":{
"message":"No routing convention was found to select an action for the OData path with template '~/entityset/key/navigation'.","type":"","stacktrace":""
}
}
}
I'm guessing the answer is no, but it would be both convenient and more performant for the client and the API.
BTW, the API is great. I love being able to only update the attributes that I care about. It feels much safer from a consistency point of view.
Thanks