# cartAttributesUpdate - storefront - MUTATION
Version: 2024-07

## Description
Updates the attributes on a cart.

### Access Scopes



## Arguments
* [attributes](/docs/api/storefront/2024-07/input-objects/AttributeInput): AttributeInput! - An array of key-value pairs that contains additional information about the cart.

The input must not contain more than `250` values.
* [cartId](/docs/api/storefront/2024-07/scalars/ID): ID! - The ID of the cart.


## Returns
* [cart](/docs/api/storefront/2024-07/objects/Cart): Cart The updated cart.
* [userErrors](/docs/api/storefront/2024-07/objects/CartUserError): CartUserError! The list of errors that occurred from executing the mutation.


## Examples