Home > @vsf-enterprise/commercetools-api > updateCartMutation

# updateCartMutation variable

Portion of the GraphQL query used in the updateCart API endpoint

Signature:

updateCartMutation = "\n  mutation updateCart(\n    $id: String!,\n    $version: Long!,\n    $actions: [MyCartUpdateAction!]!,\n    $locale: Locale!,\n    $acceptLanguage: [Locale!],\n    $currency: Currency!,\n    $storeKey: KeyReferenceInput\n  ) {\n    cart: updateMyCart(id: $id, version: $version, actions: $actions, storeKey: $storeKey) {\n      ...DefaultCart\n    }\n  }\n"