---
title: >-
  Storefront API now supports cart attributes with blank keys or values -
  Shopify developer changelog
description: >-
  Shopify’s developer changelog documents all changes to Shopify’s platform.
  Find the latest news and learn about new platform opportunities.
source_url:
  html: >-
    https://shopify.dev/changelog/storefront-api-now-supports-cart-attributes-with-blank-keys-or-values
  md: >-
    https://shopify.dev/changelog/storefront-api-now-supports-cart-attributes-with-blank-keys-or-values.md
metadata:
  effectiveApiVersion: ''
  affectedApi:
    - displayName: Storefront GraphQL API
      handle: storefront-graphql
  primaryTag:
    displayName: API
    handle: api
  secondaryTag:
    displayName: Update
    handle: update
  indicatesActionRequired: false
  createdAt: '2025-04-02T15:53:20-04:00'
  postedAt: '2025-04-08T12:00:00-04:00'
  updatedAt: '2025-04-15T19:48:33-04:00'
  effectiveAt: '2025-04-03T12:00:00-04:00'
---

April 8, 2025

Tags:

* Storefront GraphQL API

# Storefront API now supports cart attributes with blank keys or values

The GraphQL Storefront API now supports setting [cart attributes](https://shopify.dev/docs/api/storefront/latest/objects/Cart#field-attributes) with either blank keys or values. This change applies to all API versions. This matches the behavior of the [AJAX API](https://shopify.dev/docs/api/ajax/reference/cart#update-cart-attributes), which allows for setting blank keys and attributes.
