# checkoutLineItemsReplace - storefront - MUTATION Version: 2024-04 ## Description Sets a list of line items to a checkout. ### Access Scopes `unauthenticated_write_checkouts` access scope. ## Arguments * [checkoutId](/docs/api/storefront/2024-04/scalars/ID): ID! - The ID of the checkout. * [lineItems](/docs/api/storefront/2024-04/input-objects/CheckoutLineItemInput): CheckoutLineItemInput! - A list of line item objects to set on the checkout. The input must not contain more than `250` values. ## Returns * [checkout](/docs/api/storefront/2024-04/objects/Checkout): Checkout The updated checkout object. * [userErrors](/docs/api/storefront/2024-04/objects/CheckoutUserError): CheckoutUserError! The list of errors that occurred from executing the mutation. ## Examples