Set line item quantity
documentedSets the quantity for a given line item.
PATCH /api/v2/storefront/cart/set_quantityCartno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl 'https://demo.spreecommerce.org/api/v2/storefront/cart/set_quantity' \
-X PATCH \
-H 'Content-Type: application/vnd.api+json' \
-H 'Accept: application/vnd.api+json' \
-H 'X-Spree-Order-Token: {{SPREECOMMERCE_ORDER_TOKEN}}' \
-d '{"line_item_id": "{{$line_item_id}}", "quantity": {{$quantity}}}' # Sources: Spree Storefront API docs for Set Line Item Quantity and authentication guidance (turn1search0; turn0search5)