hotel_facts.delete
Permanently delete a hotel fact by its key. All locale translations are removed. Destructive — requires _confirm: true. Owner-only.
Input parameters
| Field | Type | Required | Notes |
|---|---|---|---|
key | string | yes | Fact key to delete, e.g. 'wifi.password'. |
Output fields
| Field | Type | Required | Notes |
|---|---|---|---|
ok | literal | yes | One of: true |
hotel_facts.list
List all hotel facts for the current tenant, ordered by category then key. Facts are key/value pairs used by the pre-arrival guest portal and the %fact:key% substitution renderer. Returns id, key, category, valueTranslations (locale→string map), description, usedBy, verifiedAt, and updatedAt for each fact. Read-only.
Input parameters
Returns object.
Output fields
Returns array of object. Fields of each element:
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | yes | |
key | string | yes | |
category | string · nullable | yes | |
valueTranslations | object | yes | |
description | string · nullable | yes | |
usedBy | array of string · nullable | yes | |
verifiedAt | any · nullable | yes | |
updatedAt | any | yes |
hotel_facts.update
Upsert a hotel fact's value for a given locale. If the fact key does not exist it is created; if it exists the locale is merged into the existing valueTranslations map. Category is inferred from the key prefix (e.g. "wifi.password" → category "wifi"). Default locale is "de". Owner-only. Returns the affected row id.
Input parameters
| Field | Type | Required | Notes |
|---|---|---|---|
key | string | yes | Fact key, e.g. 'wifi.password'. |
locale | string | no | BCP-47 locale code, e.g. 'de', 'en', 'fr'. — Default: "de" |
value | string | yes | The fact value for this locale. |
Output fields
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | yes |