Discussions
Possible to update Item.ItemCode in the API?
over 2 years ago by Max Szczurek
Hi - pretty sure this isn't possible, but wanted to see if there's a workaround.
I'm trying to change a product's ItemCode in the API - so I do a GET on Item?EntityId=ABC/1, and then I PUT back the body with the following properties changed:
...
"ItemCode": "ABC_1",
"ItemId": "ABC_1",
...
And my PUT URI is the same as the GET: /Item?EntityId=ABC/1
I get the message "Product with product code 'ABC_1' was not found." (I was hoping the ABC/1 in the URI would retrieve the record, and the body would overwrite the ItemCode and ItemId, but alas, nay.)
Is there another way to do this?