Appearance
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
| Method | Path | Auth | Description |
|---|---|---|---|
| GET | /api/fields | Bearer | List field definitions |
| GET | /api/field/:id | Bearer | Get single field definition |
| PUT | /api/field | JWT (admin/root) | Create a field definition |
| POST | /api/field/:id | JWT (admin/root) | Update a field definition |
| PATCH | /api/field/:id | JWT (admin/root) | Partially update a field definition |
| DELETE | /api/field/:id | JWT (admin/root) | Delete single field |
| DELETE | /api/fields | JWT (admin/root) | Bulk delete fields |
Field Types
| Type | Description |
|---|---|
Text | Rich text / plain text |
Zahl | Numeric value |
Bild | File / image upload (S3) — see File Uploads |
Tabelle | Table / structured data |
Locationpicker | Geographic coordinates |
TypologySelect | Select from typology |
TypologyKeyword | Keyword tagging |
TypologyMatrix | Matrix selection |
TypologySlider | Slider value |
Create Field (PUT)
PUT /api/fieldBody
| Field | Type | Required | Description |
|---|---|---|---|
template | number | Yes | Template (id or name) |
type | enum: Text, TypologyMatrix, TypologySlider, Zahl, Tabelle, Locationpicker, TypologySelect, TypologyKeyword, Bild | Yes | Field type |
helpimage | string | No | Help image URL |
id | number | No | Entity ID |
sort | number | No | Sort order |
name | string | Yes | Display name |
helpdescription | string | No | Help description text |
configuration | any | No | Field 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/:idBody
| Field | Type | Required | Description |
|---|---|---|---|
template | number | Yes | Template (id or name) |
type | enum: Text, TypologyMatrix, TypologySlider, Zahl, Tabelle, Locationpicker, TypologySelect, TypologyKeyword, Bild | Yes | Field type |
helpimage | string | Yes | Help image URL |
id | number | Yes | Entity ID |
sort | number | Yes | Sort order |
name | string | Yes | Display name |
helpdescription | string | Yes | Help description text |
configuration | any | Yes | Field type configuration |
Partial Update (PATCH)
PATCH /api/field/:idBody
| Field | Type | Required | Description |
|---|---|---|---|
template | number | No | Template (id or name) |
type | enum: Text, TypologyMatrix, TypologySlider, Zahl, Tabelle, Locationpicker, TypologySelect, TypologyKeyword, Bild | No | Field type |
helpimage | string | No | Help image URL |
id | number | Yes | Entity ID |
sort | number | No | Sort order |
name | string | No | Display name |
helpdescription | string | No | Help description text |
configuration | any | No | Field 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]}}}