---
title: New error codes added for metafield capabilities - 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/new-error-codes-added-for-metafield-capabilities
  md: >-
    https://shopify.dev/changelog/new-error-codes-added-for-metafield-capabilities.md
metadata:
  effectiveApiVersion: 2024-01
  affectedApi: []
  primaryTag:
    displayName: API
    handle: api
  secondaryTag:
    displayName: New
    handle: new
  indicatesActionRequired: false
  createdAt: '2023-11-09T16:30:52-05:00'
  postedAt: '2024-01-08T00:00:00-05:00'
  updatedAt: '2024-12-13T17:24:40-05:00'
  effectiveAt: '2024-01-08T00:00:00-05:00'
---

January 8, 2024

Tags:

* API
* 2024-01

# New error codes added for metafield capabilities

As of API version 2024-01, we've added the `CAPABILITY_VIOLATION` error code to the `MetafieldsSetUserErrorCode` enum. This error code is returned if you attempt to update a metafield in a way that doesn't conform to the enabled capabilities.
