-
Notifications
You must be signed in to change notification settings - Fork 9
Updating a product
Request:
PATCH /v2/products/{brand}/{model}/{variant}
The brand
, model
and variant
in the request are of the product you want to rename.
In the body you put a JSON array with the new brand, model and variant.
Add ?loopback=yes
at the end of the request if you want the renamed product in response.
Request:
PATCH /v2/products/{brand}/{model}/{variant}/features
The brand
, model
and variant
in the request are of the product you want to rename.
In the body you put a JSON array with the new brand, model and variant: specify features to update and to delete, other are left as they are.
Add ?loopback=yes
at the end of the request if you want the renamed product in response.
Request:
POST /v2/products/{brand}/{model}/{variant}/features
The brand
, model
and variant
in the request are of the product you want to rename.
In the body you put a JSON array with the new brand, model and variant: delete every feature, replace with new ones.
Add ?loopback=yes
at the end of the request if you want the renamed product in response.