Backend API
For a single line of text. Stored as a string.
Fields
id
stringrequiredKey used to reference the field on a record, relative to the root path. Supports object notation for nesting values.
label
stringrequiredDisplay name shown to admins in the dashboard.
description
stringInformational text for admins and developers describing the field\'s purpose.
type
enumrequiredDesignates the field type.
Possible enum values:
ui
enumInterface type shown to admins in the dashboard. Defaults to the first enum value.
Possible enum values:
min
intMinimum character count allowed for the field value.
max
intMinimum character count allowed for the field value
format
enumFormatting rule applied to the field value.
Possible enum values:
required
booleanWhether a field value is required to create or update the record.
unique
booleanWhether the field value must be unique among records of the same collection.
default
stringDefault field value for new records.
placeholder
stringExample field value or hint shown to admin users when the field is empty.
localized
booleanWhether the field value can be set per locale.
root
enumBase path on records. Use object notation for placing field on nested data structures
Possible enum values:
public
booleanWhether the field is available in the Frontend API.
The short text field model
{
"id": "item_type",
"label": "Item type",
"type": "short_text",
"localized": true,
"public": true
}
For multiple lines of text that can have formatting. Stored as a string.
Fields
id
stringrequiredKey used to reference the field on a record, relative to the root path. Supports object notation for nesting values.
label
stringrequiredDisplay name shown to admins in the dashboard.
description
stringInformational text for admins and developers describing the field\'s purpose.
type
enumrequiredDesignates the field type.
Possible enum values:
ui
enumInterface type shown to admins in the dashboard. Defaults to the first enum value.
Possible enum values:
min
intMinimum character count allowed for the field value.
max
intMinimum character count allowed for the field value
html_tags
enumAllowed HTML tags (If null, default tags for the UI type are allowed).
Possible enum values:
required
booleanWhether a field value is required to create or update the record.
unique
booleanWhether the field value must be unique among records of the same collection.
default
stringDefault field value for new records.
placeholder
stringExample field value or hint shown to admin users when the field is empty.
localized
booleanWhether the field value can be set per locale.
root
enumBase path on records. Use object notation for placing field on nested data structures
Possible enum values:
public
booleanWhether the field is available in the Frontend API.
The long text field model
{
"id": "profile_bio",
"label": "Profile bio",
"type": "long_text",
"ui": "basic_html",
"max": 250,
"localized": true,
"public": true
}
For values that need to be parsed as numbers. Stored as a float if `digits` are specified, otherwise as an integer.
Fields
id
stringrequiredKey used to reference the field on a record, relative to the root path. Supports object notation for nesting values.
label
stringrequiredDisplay name shown to admins in the dashboard.
description
stringInformational text for admins and developers describing the field\'s purpose.
type
enumrequiredDesignates the field type.
Possible enum values:
ui
enumInterface type shown to admins in the dashboard. Defaults to the first enum value.
Possible enum values:
min
intThe lowest field value allowed.
max
intThe highest field value allowed.
increment
intThe interval between numbers, if the `ui` supports it.
digits
intExplicit number of decimal digits for storing and displaying the field value.
unit
stringUnit of measurement for the field value. Displayed in the admin dashboard and used for conversion logic, if available.
required
booleanWhether a field value is required to create or update the record.
unique
booleanWhether the field value must be unique among records of the same collection.
default
intDefault field value for new records.
placeholder
stringExample field value or hint shown to admin users when the field is empty.
localized
booleanWhether the field value can be set per locale.
root
enumBase path on records. Use object notation for placing field on nested data structures
Possible enum values:
public
booleanWhether the field is available in the Frontend API.
A true/false value. Stored as a boolean.
Arguments
id
stringrequiredKey used to reference the field on a record, relative to the root path. Supports object notation for nesting values.
label
stringrequiredDisplay name shown to admins in the dashboard.
description
stringInformational text for admins and developers describing the field\'s purpose.
type
enumrequiredDesignates the field type.
Possible enum values:
ui
enumInterface type shown to admins in the dashboard. Defaults to the first enum value.
Possible enum values:
required
booleanWhether a field value is required to create or update the record.
unique
booleanWhether the field value must be unique among records of the same collection.
default
intDefault field value for new records.
placeholder
stringExample field value or hint shown to admin users when the field is empty.
localized
booleanWhether the field value can be set per locale.
root
enumBase path on records. Use object notation for placing field on nested data structures
Possible enum values:
public
booleanWhether the field is available in the Frontend API.
For defining multiple options that can be chosen from. The stored value type depends on how `options` and `multi` are configured.
Fields
id
stringrequiredKey used to reference the field on a record, relative to the root path. Supports object notation for nesting values.
label
stringrequiredDisplay name shown to admins in the dashboard.
description
stringInformational text for admins and developers describing the field\'s purpose.
type
enumrequiredDesignates the field type.
Possible enum values:
ui
enumInterface type shown to admins in the dashboard. Defaults to the first enum value.
Possible enum values:
options
enumOptions that can be selected by users. All options must be the same data type; either string, number, or object.
Possible enum values:
multi
booleanWhether multiple values can be selected at once.
required
booleanWhether a field value is required to create or update the record.
unique
booleanWhether the field value must be unique among records of the same collection.
default
enumDefault field value for new records. Must be one of the values specified for `options`.
Possible enum values:
placeholder
stringExample field value or hint shown to admin users when the field is empty.
localized
booleanWhether the field value can be set per locale.
root
enumBase path on records. Use object notation for placing field on nested data structures
Possible enum values:
public
booleanWhether the field is available in the Frontend API.
For date and time input. Stored as an ISO 8601 date/time string. A variety of input formats are accepted for the value, including Unix time in milliseconds, a parseable timestamp string, or simply \\'now\\'.
Arguments
id
stringrequiredKey used to reference the field on a record, relative to the root path. Supports object notation for nesting values.
label
stringrequiredDisplay name shown to admins in the dashboard.
description
stringInformational text for admins and developers describing the field\'s purpose.
type
enumrequiredDesignates the field type.
Possible enum values:
ui
enumInterface type shown to admins in the dashboard. Defaults to the first enum value.
Possible enum values:
required
booleanWhether a field value is required to create or update the record.
unique
booleanWhether the field value must be unique among records of the same collection.
default
enumDefault field value for new records. Using 'now' is ideal in many cases.
Possible enum values:
placeholder
stringExample field value or hint shown to admin users when the field is empty.
localized
booleanWhether the field value can be set per locale.
root
enumBase path on records. Use object notation for placing field on nested data structures
Possible enum values:
public
booleanWhether the field is available in the Frontend API.
For binary files such as media and documents. Stored as an array of files if `multi` is `true`, otherwise as a single file.
Arguments
id
stringrequiredKey used to reference the field on a record, relative to the root path. Supports object notation for nesting values.
label
stringrequiredDisplay name shown to admins in the dashboard.
description
stringInformational text for admins and developers describing the field\'s purpose.
type
enumrequiredDesignates the field type.
Possible enum values:
asset_types
enumTypes of files allowed to be uploaded.
Possible enum values:
multi
booleanWhether multiple files can be added.
required
booleanWhether a field value is required to create or update the record.
unique
booleanWhether the field value must be unique among records of the same collection.
localized
booleanWhether the field value can be set per locale.
root
enumBase path on records. Use object notation for placing field on nested data structures
Possible enum values:
public
booleanWhether the field is available in the Frontend API.
For referencing a record of another model. Stored as a string.
Fields
id
stringrequiredKey used to reference the field on a record, relative to the root path. Supports object notation for nesting values.
label
stringrequiredDisplay name shown to admins in the dashboard.
description
stringInformational text for admins and developers describing the field\'s purpose.
type
enumrequiredDesignates the field type.
Possible enum values:
collection
stringrequiredCollection ID to lookup records of.
required
booleanWhether a field value is required to create or update the record.
unique
booleanWhether the field value must be unique among records of the same collection.
default
intDefault field value for new records.
placeholder
stringExample field value or hint shown to admin users when the field is empty.
localized
booleanWhether the field value can be set per locale.
root
enumBase path on records. Use object notation for placing field on nested data structures
Possible enum values:
public
booleanWhether the field is available in the Frontend API.
A nested collection of records or references to records in another collection. Stored as an array. Can be infinitely nested, and supports either single or multiple item types.
Fields
id
stringrequiredKey used to reference the field on a record, relative to the root path. Supports object notation for nesting values.
label
stringrequiredDisplay name shown to admins in the dashboard.
description
stringInformational text for admins and developers describing the field\'s purpose.
type
enumrequiredDesignates the field type.
Possible enum values:
fields
enumSchema definition for nested record collection, if only a single type is needed.
Possible enum values:
item_types
enumIDs of allowed content types (to reference) or inline schema definitions.
Possible enum values:
item_label
stringPath of nested field or record used as the display label for each item.
required
booleanWhether a field value is required to create or update the record.
localized
booleanWhether the field value can be set per locale.
root
enumBase path on records. Use object notation for placing field on nested data structures
Possible enum values:
public
booleanWhether the field is available in the Frontend API.
For grouping several conceptually related fields together to make the editing UI more intuitive and less cluttered. Stored as an array of fields.
Fields
id
stringrequiredKey used to reference the field on a record, relative to the root path. Supports object notation for nesting values.
label
stringrequiredDisplay name shown to admins in the dashboard.
type
enumrequiredDesignates the field type.
Possible enum values:
fields
enumFields to display within the group.
Possible enum values:
For a set of arbitrary tags that can be ordered manually. Stored as an array of strings.
Fields
id
stringrequiredKey used to reference the field on a record, relative to the root path. Supports object notation for nesting values.
label
stringrequiredDisplay name shown to admins in the dashboard.
description
stringInformational text for admins and developers describing the field\'s purpose.
type
enumrequiredDesignates the field type.
Possible enum values:
required
booleanWhether a field value is required to create or update the record.
unique
booleanWhether the field value must be unique among records of the same collection.
default
intDefault field value for new records.
placeholder
stringExample field value or hint shown to admin users when the field is empty.
localized
booleanWhether the field value can be set per locale.
root
enumBase path on records. Use object notation for placing field on nested data structures
Possible enum values:
public
booleanWhether the field is available in the Frontend API.
For representing color swatches as Hex, RGB, or HSL codes. Stored as a string.
Fields
id
stringrequiredKey used to reference the field on a record, relative to the root path. Supports object notation for nesting values.
label
stringrequiredDisplay name shown to admins in the dashboard.
description
stringInformational text for admins and developers describing the field's purpose.
type
enumrequiredDesignates the field type.
Possible enum values:
required
booleanWhether a field value is required to create or update the record.
unique
booleanWhether the field value must be unique among records of the same collection.
default
stringDefault field value for new records.
placeholder
stringExample field value or hint shown to admin users when the field is empty.
localized
booleanWhether the field value can be set per locale.
root
enumBase path on records. Use object notation for placing field on nested data structures
Possible enum values:
public
booleanWhether the field is available in the Frontend API.
Choose from a list of icons. Stored as a string.
Fields
id
stringrequiredKey used to reference the field on a record, relative to the root path. Supports object notation for nesting values.
label
stringrequiredDisplay name shown to admins in the dashboard.
description
stringInformational text for admins and developers describing the field\'s purpose.
type
enumrequiredDesignates the field type.
Possible enum values:
required
booleanWhether a field value is required to create or update the record.
unique
booleanWhether the field value must be unique among records of the same collection.
default
stringDefault field value for new records.
placeholder
stringExample field value or hint shown to admin users when the field is empty.
localized
booleanWhether the field value can be set per locale.
root
enumBase path on records. Use object notation for placing field on nested data structures
Possible enum values:
public
booleanWhether the field is available in the Frontend API.