---
title: "Update cart items"
method: PATCH
path: "/carts/{cart_id}/items"
tags: ["Carts"]
---

# Update cart items

`PATCH /carts/{cart_id}/items`

## Request

- Base URL: `https://dummyHandle.shoplineapp.com/storefront-api/v1`
- URL: `https://dummyHandle.shoplineapp.com/storefront-api/v1/carts/{cart_id}/items`
- Auth: one of:
  - API key in header `X-Storefront-Token`
  - API key in header `X-Storefront-Token` and API key in header `X-Customer-Token`

Update items to cart

## Path parameters

- `cart_id` string, required

## Request body

- object
  - `items` object[]
    - `cart_item_id` string, required: Cart item identifier
    - `quantity` integer, required: Cart item quantity

## Response `207`

- object
  - `error` object
    - `message` object[], nullable
      - `index` integer: Cart item index
      - `code` string: Cart item error code
      - `reason` string: Cart item error reason
  - `trace_id` string

---

[API](https://skmtc.dev/shoplineapp/apis/shopline-storefront-api.md) - [All operations](https://skmtc.dev/shoplineapp/apis/shopline-storefront-api/llms.txt) - [OpenAPI document](https://skmtc.dev/shoplineapp/apis/shopline-storefront-api/revisions/8c9cd5ce664d?raw)
