Update a group product item
Updates a group product item. The change is applied only when a to_product is supplied; the new to_product must be a Simple product and must not already form a duplicate pair with the item's grouped product. On success the grouped product's price is recomputed using the GROUPED_PRODUCT_PRICE_SELECTOR dynamic setting. Business-rule violations return HTTP 406.
Token credential sent in the Authorization header, in the form: Token <your-token>. Requires a staff (admin) account.
The unique identifier of the group product item.
Fields for creating or fully replacing a group product item. from_product must be a Grouped product and to_product a Simple product; the pair must be unique.
Identifier of the grouped master product.
Identifier of the member (simple) product.
Sort order of the member within the group. Defaults to 0.
0Quantity of the member product included in the set.
1The updated group product item.
A membership row linking a grouped product to one of its member (simple) products.
Unique identifier of the group product item.
Identifier of the grouped master product.
Identifier of the member (simple) product.
Sort order of the member within the group. Lower values appear first.
0Quantity of the member product included in the set.
1The request contains invalid or missing data.
Authentication credentials were not provided or are invalid.
The authenticated user does not have administrator privileges.
The requested group product item does not exist.
The request is well-formed but violates a membership rule — the master is not a Grouped product (group_product_item_100_1), the member is not a Simple product (group_product_item_100_2), or the (from_product, to_product) pair already exists.
PUT /api/v1/remote/1/group_product_items/{id}/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 68
{
"from_product": 700,
"to_product": 341,
"order": 0,
"initial_quantity": 2
}{
"pk": 5,
"from_product": 700,
"to_product": 341,
"order": 0,
"initial_quantity": 2
}Last updated
Was this helpful?

