> This page is for Developer.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.bigcommerce.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.bigcommerce.com/_mcp/server.

# UpdateCartMetafieldInput

GraphQL input

Input for update cart's metafield mutation.

Reference: https://docs.bigcommerce.com/developer/api-reference/graphql/storefront/types/inputs/update-cart-metafield-input

## Fields

- `cartEntityId` — Id of the cart for which to update metafield.
- `metafieldEntityId` — Id of metafield to update.
- `data` — Data to update metafield.

## Definition

```graphql
input UpdateCartMetafieldInput {
  cartEntityId: String!
  metafieldEntityId: Int!
  data: UpdateCartMetafieldDataInput!
}
```