Home > @vsf-enterprise/epcc-api > CartEndpoints > updateCartItem

# CartEndpoints.updateCartItem() method

Updates a cart item. Returns the cart items.

Signature:

updateCartItem(context: ElasticPathIntegrationContext, params: UpdateCartItemParams): Promise<CartItem[]>;

# Parameters

Parameter Type Description
context ElasticPathIntegrationContext An auto-generated value prepended to the method as a first parameter.
params UpdateCartItemParams An object which contains necessary properties for updating a cart item.

Returns:

Promise<CartItem[]>