cart.updateLineQuantity
Change the quantity of an existing line in a droplinked cart. Identifies the line by skuId (the variant id used when the line was added). Returns { status, cartId, skuId, updatedQuantity }. Use cart.removeLine to remove a line entirely instead of setting quantity=0. Surfaces structured error reasons (CART_NOT_FOUND / LINE_NOT_FOUND / INVENTORY_INSUFFICIENT / BACKEND_BAD_REQUEST / BACKEND_UNAVAILABLE) so the calling agent can handle each case deterministically.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| skuId | Yes | ||
| cartId | Yes | ||
| quantity | Yes |