Field types
Numbers are exact. Bludia never rounds numbers through floating point. Integers come back as numbers and decimals may come back as exact strings (for example
"19.99"). You can configure scale and precision on the field.Auto numbers
Anauto_number field numbers records in the order they are created, the way invoice numbers work:
INV-00001, INV-00002, and so on. All three settings are optional. start defaults to 1, prefix to none, and padding (zero-pad to this many digits) to 0.
- Assigned by the database when a record is created, whatever the write path (dashboard, API, import, functions). Don’t send a value: a create that includes one is rejected, and an edit may only send the stored number back unchanged.
- Gapless. A number is used only when the record is saved. A failed or cancelled save gives its number back. Concurrent saves wait their turn, so two records never get the same number.
- Never changes. Editing or clearing a number is refused (409). Moving a record to the trash and restoring it keeps its number. Deleting a record permanently leaves its number unused.
- Existing records. Adding an auto-number field to a collection that already has records numbers them in creation order. Values that are already there are kept.
- Settings. The start can’t change after the first number is issued. A new prefix or padding applies to new records only, so issued numbers stay exactly as they were.
- Sorting follows the number, so
INV-10comes afterINV-9.
System fields
Every record has these fields automatically. You can’t remove them.
List responses also include
children, which holds related records you asked for with with.
Field options
Choosing a type
Fields in the API
- Write using field names:
{ "status": "confirmed" }. Unknown keys are ignored. - Read returns every field as a top-level key; missing values are
null. - Relation fields accept a record ID or an array of IDs. See Relations.
- Password fields are accepted on write and never returned.
