v1

latestSwagger 2.02026-08-045928532.7 MB
MetafieldDefinitions

post/api/v1.0/{appId}/metafields/definitions/{ownerEntity}

Path parameters

appIdstring required
ownerEntity'CatalogItem' | 'CatalogGroup' | 'Menu' required

Request body

IsReadOnlyboolean

Indicates if a definition can be edited or not

OwnerEntity'CatalogItem' | 'CatalogGroup' | 'Menu'

The Metafield will extend the specified {Flipdish.Metafields.PublicModels.V1.MetafieldDefinitionBase.OwnerEntity}

Keystring required

Key of the metafield. The key must have two parts, separated by a dot. The first part acts as a category, for organizational purposes. The parts can be composed of lowercase letters, numbers, hyphen and underscore

ValueType'Boolean' | 'Json' | 'SingleLineString' | 'MultiLineString'

The excepted type for the Value field

Namestring required

Field Name

Descriptionstring

Field Description

Behaviorsstring[]

Enable Metafield Behaviors

MetafieldDefinitionRecommendationIdinteger nullable

Metafield Recommendation Id

Response

OK