Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

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.

put
/group_product_items/{id}/
Authorizations
AuthorizationstringRequired

Token credential sent in the Authorization header, in the form: Token <your-token>. Requires a staff (admin) account.

Path parameters
idintegerRequired

The unique identifier of the group product item.

Body

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.

from_productintegerRequired

Identifier of the grouped master product.

to_productintegerRequired

Identifier of the member (simple) product.

orderintegerOptional

Sort order of the member within the group. Defaults to 0.

Default: 0
initial_quantityintegerRequired

Quantity of the member product included in the set.

Default: 1
Responses
200

The updated group product item.

application/json

A membership row linking a grouped product to one of its member (simple) products.

pkintegerRead-onlyRequired

Unique identifier of the group product item.

from_productintegerRequired

Identifier of the grouped master product.

to_productintegerRequired

Identifier of the member (simple) product.

orderintegerRequired

Sort order of the member within the group. Lower values appear first.

Default: 0
initial_quantityintegerRequired

Quantity of the member product included in the set.

Default: 1
put/group_product_items/{id}/
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?