Field types
Every field has one of eleven types. The type decides the input in the Admin Studio, how values are validated and stored, how they look in the API, and which filters work on them.
Overview
| Type | API value | Unique | Sortable | Filter operators |
|---|---|---|---|---|
text | string | ✓ | ✓ | eq, ne, in, contains, startsWith, isNull |
longtext | string | contains, isNull | ||
integer | number | ✓ | ✓ | eq, ne, gt, gte, lt, lte, in, isNull |
decimal | string, e.g. "19.90" | ✓ | ✓ | eq, ne, gt, gte, lt, lte, in, isNull |
boolean | true / false | ✓ | eq, ne, isNull | |
date | "2026-11-14" | ✓ | ✓ | eq, ne, gt, gte, lt, lte, in, isNull |
datetime | UTC ISO 8601 string | ✓ | ✓ | eq, ne, gt, gte, lt, lte, in, isNull |
select | option value | ✓ | eq, ne, in, isNull | |
multiselect | array of option values | contains, isNull | ||
relation | record id, or array of ids | eq, in, contains, isNull | ||
media | media id, or array of ids | isNull |
Empty values are returned as null. Sending null (or an empty string or array) clears an optional field. Required fields reject empty values.
Text
A single line of text. Leading and trailing spaces are trimmed.
| Setting | Default | Description |
|---|---|---|
maxLength | 255 | 1 to 10,000 characters |
minLength | none | Minimum length |
format | plain | plain, email, url (http/https only), or slug (lower-case words separated by hyphens) |
Long text
Multi-line text such as article bodies. Settings: maxLength (default 100,000; up to 1,000,000) and markdown (a hint for editors and frontends that the content is Markdown).
Integer and decimal
- Integer: whole numbers within JavaScript's safe range, with optional
minandmax. - Decimal: exact decimals, returned as strings so no precision is lost. Settings:
min,maxandscale(decimal places, default 2). Input19.9is stored as"19.90". More decimal places than the scale allows is an error.
Boolean
Only true or false. Strings such as "true" are rejected in the request body (filters accept true/false in the query string).
Date and date-time
- Date: a calendar date
YYYY-MM-DD, checked for validity (no 30 February). Optionalminandmax. - Date-time: any ISO 8601 timestamp with a timezone. It is stored and returned in UTC, for example
"2026-11-14T08:00:00.000Z".
Select and multi-select
Choose from a fixed list of options, each with a value (stored, used in the API: letters, digits, _ . -) and a label (shown in the UI).
{ "options": [ { "value": "draft", "label": "Draft" }, { "value": "published", "label": "Published" } ] }Multi-select also supports minItems and maxItems, and returns values in an array without duplicates.
Relation
Links to records of another entity in the same workspace.
| Setting | Description |
|---|---|
targetEntityId | The entity to link to (in schema files: targetEntity with the entity key) |
cardinality | one (default) or many |
maxItems | For many: up to 100 (default) |
Targets must exist, must belong to the target entity, and must not be in the trash. Use ?expand=field to get the linked records inline. If a linked record is deleted permanently, the reference is removed automatically. The target and cardinality can only change while no record uses the field.
Media
References files in the media library. Settings: multiple (allow several files), maxItems, and accept, a list of allowed kinds: image, video, audio, document.
Field rules (all types)
| Rule | Effect |
|---|---|
required | Value must be present on create, and cannot be cleared |
unique | No other live record of the workspace may have the same value (text ignores case). Turning it on fails if duplicates already exist. |
defaultValue | Used when a new record doesn't set the field (not for unique, relation, media or date-time fields) |
isPublic | Include in public API responses |
readMinRole | Minimum role that sees the field (default viewer) |
writeMinRole | Minimum role that may set the field (default editor) |
Reserved keys that cannot be used as field keys: id, createdAt, updatedAt, createdBy, updatedBy, version, deletedAt, entity, tenant.