> Documentation index: [Saleor](/llms.txt) · [This section](/api-reference/checkout/llms.txt)
> Source: https://docs.saleor.io/api-reference/checkout/mutations/checkout-lines-update

# checkoutLinesUpdate Mutation

Updates checkout line in the existing checkout.

Triggers the following webhook events:

-   CHECKOUT\_UPDATED (async): A checkout was updated.

```graphql
checkoutLinesUpdate(
  checkoutId: ID
  id: ID
  lines: [CheckoutLineUpdateInput!]!
  token: UUID
): CheckoutLinesUpdate
```

Details

```graphql
type CheckoutLinesUpdate {
  checkout: Checkout
  checkoutErrors: [CheckoutError!]! @deprecated
  errors: [CheckoutError!]!
}
```

<a id="arguments"></a>

### Arguments

<a id="id"></a>

#### [`id`](#id) ● [`ID`](/api-reference/miscellaneous/scalars/id.md)

The checkout's ID.

<a id="lines"></a>

#### [`lines`](#lines) ● [`[CheckoutLineUpdateInput!]!`](/api-reference/checkout/inputs/checkout-line-update-input.md)

A list of checkout lines, each containing information about an item in the checkout.

Show deprecatedHide deprecated

<a id="checkout-id"></a>

#### [`checkoutId`](#checkout-id) ● [`ID`](/api-reference/miscellaneous/scalars/id.md)

DEPRECATED

Use `id` instead.

The ID of the checkout.

<a id="token"></a>

#### [`token`](#token) ● [`UUID`](/api-reference/miscellaneous/scalars/uuid.md)

DEPRECATED

Use `id` instead.

Checkout token.

<a id="type"></a>

### Type

<a id="checkoutlinesupdate"></a>

#### [`CheckoutLinesUpdate`](/api-reference/checkout/objects/checkout-lines-update.md)

Updates checkout line in the existing checkout.

Triggers the following webhook events:

-   CHECKOUT\_UPDATED (async): A checkout was updated.
