Skip to content

Fields ​

Template field definitions. Each field belongs to a template group and defines a content field type.

Note: The database entity is Templates. Template groups are managed via Templates.

Routes ​

MethodPathAuthDescription
GET/api/fieldsBearerList field definitions
GET/api/field/:idBearerGet single field definition
PUT/api/fieldJWT (admin/root)Create a field definition
POST/api/field/:idJWT (admin/root)Update a field definition
PATCH/api/field/:idJWT (admin/root)Partially update a field definition
DELETE/api/field/:idJWT (admin/root)Delete single field
DELETE/api/fieldsJWT (admin/root)Bulk delete fields

Field Types ​

TypeDescription
TextRich text / plain text
ZahlNumeric value
BildFile / image upload (S3) — see File Uploads
TabelleTable / structured data
LocationpickerGeographic coordinates
TypologySelectSelect from typology
TypologyKeywordKeyword tagging
TypologyMatrixMatrix selection
TypologySliderSlider value

Create Field (PUT) ​

PUT /api/field

Body ​

FieldTypeRequiredDescription
templatenumberYesTemplate (id or name)
typeenum: Text, TypologyMatrix, TypologySlider, Zahl, Tabelle, Locationpicker, TypologySelect, TypologyKeyword, BildYesField type
helpimagestringNoHelp image URL
idnumberNoEntity ID
sortnumberNoSort order
namestringYesDisplay name
helpdescriptionstringNoHelp description text
configurationanyNoField type configuration

When creating a field, dummy data entries are automatically created for all existing contributions using this template.

Update Field (POST) ​

POST /api/field/:id

Body ​

FieldTypeRequiredDescription
templatenumberYesTemplate (id or name)
typeenum: Text, TypologyMatrix, TypologySlider, Zahl, Tabelle, Locationpicker, TypologySelect, TypologyKeyword, BildYesField type
helpimagestringYesHelp image URL
idnumberYesEntity ID
sortnumberYesSort order
namestringYesDisplay name
helpdescriptionstringYesHelp description text
configurationanyYesField type configuration

Partial Update (PATCH) ​

PATCH /api/field/:id

Body ​

FieldTypeRequiredDescription
templatenumberNoTemplate (id or name)
typeenum: Text, TypologyMatrix, TypologySlider, Zahl, Tabelle, Locationpicker, TypologySelect, TypologyKeyword, BildNoField type
helpimagestringNoHelp image URL
idnumberYesEntity ID
sortnumberNoSort order
namestringNoDisplay name
helpdescriptionstringNoHelp description text
configurationanyNoField type configuration

Delete ​

Single: DELETE /api/field/:id — removes the field and all associated data values.

Bulk: DELETE /api/fields with body {"where": {"id": {"$in": [1, 2, 3]}}}