Backend API
Content models are a layer above data models and have a simpler configuration syntax and allow for field values to be editable in the dashboard. They provide most of the functionality you'd expect from a dedicated CMS—with the additional benefit of making content available in the same API as standard models like products. While data models are limited to primitive field types like string, content models can define input UIs for fields like phone_number or url to provide a better editing experience. This ensures that the data is entered in the correct format.
Refer to the Data model customization guide for details on how to work with content models.
Fields
id
stringrequireddate_created
dateautodate_updated
dateautoname
stringrequiredsource_type
enumrequiredPossible enum values:
source_id
stringtarget_model
stringrequiredtarget_field
stringconditions
objectfields
array of objectid
stringrequiredtype
enumPossible enum values:
value_type
enumPossible enum values:
conditions
objectenum
array of child_scalarformula
stringformat
stringrequired
booleanreadonly
booleanunique
mixedkey
stringmodel
stringlabel
stringplural
stringdescription
stringauto
mixedincrement
objectmultiline
booleanrules
array of objectexpression
stringerror
stringlength
intminlength
intmaxlength
intmin
floatmax
floatfields
array of objectid
stringrequiredtype
enumPossible enum values:
value_type
enumPossible enum values: