metafield.definition.update

Update a metafield definition's label, description, or validations (type/key are immutable).

Payload

fieldtyperequirednotes
idstring (/^mfd_[0-9A-HJKMNP-TV-Z]{26}$/)yes
patchobjectyes
labelTRstring (≤100 chars)no
descriptionTRstring (≤500 chars)no
validationsobjectno
minnumberno
maxnumberno
maxLengthinteger (..65536)no
regexstring (≤200 chars)no
choicesarray<string (≤100 chars)> (≤50)no

JSON Schema

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "pattern": "^mfd_[0-9A-HJKMNP-TV-Z]{26}$"
    },
    "patch": {
      "type": "object",
      "properties": {
        "labelTR": {
          "type": "string",
          "minLength": 1,
          "maxLength": 100
        },
        "descriptionTR": {
          "type": "string",
          "maxLength": 500
        },
        "validations": {
          "type": "object",
          "properties": {
            "min": {
              "type": "number"
            },
            "max": {
              "type": "number"
            },
            "maxLength": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 65536
            },
            "regex": {
              "type": "string",
              "maxLength": 200
            },
            "choices": {
              "minItems": 1,
              "maxItems": 50,
              "type": "array",
              "items": {
                "type": "string",
                "maxLength": 100
              }
            }
          },
          "additionalProperties": false
        }
      },
      "additionalProperties": false
    }
  },
  "required": [
    "id",
    "patch"
  ],
  "additionalProperties": false
}
Generated from the live platform registries at build time — reference pages cannot go stale. Markdown variant: /reference/commands/metafield.definition.update.md