Updating products: usage of JsonPatch

I was trying change product name by Cloud Api, but I was sending follow JSON:

{“id”:“584f4fa0-4dee-48de-9b46-f24e616bd918”,“name”:“AAABBB”}

Where Id is the product id and name is the new name.

In gitter, @dsnatochy told me about the JsonPatch pattern, and I solved my problem sending JSON:

[{“op”: “replace”,“path”: “/name”,“value”:“AAABBB”}]

Thanks.

Thanks for sharing this @rafael_quines

1 Like