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.
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 partially updating a group product item. All fields are optional, but the record is only modified when to_product is provided.
Identifier of the new member (simple) product. Must not form a duplicate pair.
Sort order of the member within the group.
Quantity of the member product included in the set.
The 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.
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?

