> This page is for Developer.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.bigcommerce.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.bigcommerce.com/_mcp/server.

# UpdateCartLineItemInput

GraphQL input

Update cart line item input object

Reference: https://docs.bigcommerce.com/developer/api-reference/graphql/storefront/types/inputs/update-cart-line-item-input

## Fields

- `cartEntityId` — The cart id
- `lineItemEntityId` — The line item id
- `data` — Update cart line item data object
- `version` — Version number. When provided, will reject the request if the version number is not the latest version of the cart, in order to prevent race conditions.

## Definition

```graphql
input UpdateCartLineItemInput {
  cartEntityId: String!
  lineItemEntityId: String!
  data: UpdateCartLineItemDataInput!
  version: Int
}
```