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

Partially update a group product item

Updates one or more fields of a group product item. The record is only modified when to_product is included in the request; otherwise the item is returned unchanged. The same membership rules and price recomputation as the full update apply.

patch
/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 partially updating a group product item. All fields are optional, but the record is only modified when to_product is provided.

to_productintegerOptional

Identifier of the new member (simple) product. Must not form a duplicate pair.

orderintegerOptional

Sort order of the member within the group.

initial_quantityintegerOptional

Quantity of the member product included in the set.

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
patch/group_product_items/{id}/
PATCH /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: 39

{
  "initial_quantity": 3,
  "to_product": 342
}
{
  "pk": 5,
  "from_product": 700,
  "to_product": 341,
  "order": 0,
  "initial_quantity": 2
}

Last updated

Was this helpful?