Skip to content
Quadrollopo edited this page Oct 30, 2020 · 1 revision

Renaming 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.

Updating a product

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.

Setting a product

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.