--- title: Compare-and-swap (CAS) for the Metafields API - 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/compare-and-swap-cas-for-the-metafields-api md: https://shopify.dev/changelog/compare-and-swap-cas-for-the-metafields-api.md --- [Back to Developer changelog](https://shopify.dev/changelog) June 28, 2024 Tags: * Admin GraphQL API * Customer Account API * 2024-07 # Compare-and-swap (CAS) for the Metafields API As of GraphQL Admin and Customer Account APIs version `2024-07`, you can now set metafields using compare-and-swap (CAS) through the new `compareDigest` field for the `metafieldsSet` mutation. Using CAS will add support to properly handle concurrency requests.