Creates a channel metafield.
**Note:** The maxiumum number of metafields allowed on each order, product, category, variant, channel, or brand is 250 per client ID. For more information, see [Platform Limits](https://support.bigcommerce.com/s/article/Platform-Limits) in the Help Center.
Request
This endpoint expects an object.
namespacestringRequired1-64 characters
Namespace for the metafield, for organizational purposes. This is set by the developer.
keystringRequired1-64 characters
The name of the field.
valuestringRequired1-65535 characters
The value of the field.
permission_setenumRequired
Determines the visibility and writeability of the field by other API consumers.
descriptionstringOptional0-255 characters
Description for the metafield.
Response
OK
idintegerOptional
Unique ID of the Metafield.
permission_setenumOptional
Determines the visibility and writeability of the field by other API consumers.
namespacestringOptional1-64 characters
Namespace for the metafield, for organizational purposes.
keystringOptional1-64 characters
The name of the field, for example: location_id, color.
valuestringOptional1-65535 characters
The value of the field.
descriptionstringOptional0-255 characters
Description for the metafields.
resource_typeenumOptional
The type of resource with which the metafield is associated.
resource_idintegerOptional0-10000000000
The ID for the resource with which the metafield is associated.
date_createddatetimeOptional
Date and time of the metafieldʼs creation. Read-Only.
date_modifieddatetimeOptional
Date and time when the metafield was last updated. Read-Only.