BigCommerce · Schema

metafield_Post

Metafield for products, categories, variants, and brands. The max number of metafields allowed on each product, category, variant, or brand is 250. For more information, see [Platform Limits](https://support.bigcommerce.com/s/article/Platform-Limits) in the Help Center.

E-CommerceRetailCatalogOrdersCheckoutPaymentsSaaS

Properties

Name Type Description
namespace string Namespace for the metafield, for organizational purposes. This is set by the developer.
key string The name of the field.
value string The value of the field.
permission_set string Determines the visibility and writeability of the field by other API consumers. |Value|Description |-|-| |`app_only`|Private to the app that owns the field| |`read`|Visible to other API consumers| |`w
description string Description for the metafield.
View JSON Schema on GitHub

JSON Schema

bigcommerce-metafield-post-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/metafield_Post",
  "title": "metafield_Post",
  "type": "object",
  "description": "Metafield for products, categories, variants, and brands. The max number of metafields allowed on each product, category, variant, or brand is 250. For more information, see [Platform Limits](https://support.bigcommerce.com/s/article/Platform-Limits) in the Help Center.",
  "x-internal": false,
  "properties": {
    "namespace": {
      "maxLength": 64,
      "minLength": 1,
      "type": "string",
      "description": "Namespace for the metafield, for organizational purposes. This is set by the developer.",
      "example": "Warehouse Locations",
      "x-required": [
        "post"
      ]
    },
    "key": {
      "maxLength": 64,
      "minLength": 1,
      "type": "string",
      "description": "The name of the field.\n",
      "example": "Location",
      "x-required": [
        "post"
      ]
    },
    "value": {
      "maxLength": 65535,
      "minLength": 1,
      "type": "string",
      "description": "The value of the field.\n",
      "example": "4HG",
      "x-required": [
        "post"
      ]
    },
    "permission_set": {
      "type": "string",
      "description": "Determines the visibility and writeability of the field by other API consumers.\n\n|Value|Description\n|-|-|\n|`app_only`|Private to the app that owns the field|\n|`read`|Visible to other API consumers|\n|`write`|Open for reading and writing by other API consumers|\n|`read_and_sf_access`|Visible to other API consumers, including on storefront|\n|`write_and_sf_access`|Open for reading and writing by other API consumers, including on storefront|",
      "enum": [
        "app_only",
        "read",
        "write",
        "read_and_sf_access",
        "write_and_sf_access"
      ]
    },
    "description": {
      "maxLength": 255,
      "minLength": 0,
      "type": "string",
      "description": "Description for the metafield.\n",
      "example": "Location in the warehouse"
    }
  },
  "required": [
    "namespace",
    "key",
    "value",
    "permission_set"
  ]
}