FoyerDevelopers

Generated · Live registry

hotel_facts tools

3 tools in this domain, generated from the running registry.

All tool domains

hotel_facts.delete

writesconfirm

Permanently delete a hotel fact by its key. All locale translations are removed. Destructive — requires _confirm: true. Owner-only.

Input parameters

FieldTypeRequiredNotes
keystringyesFact key to delete, e.g. 'wifi.password'.

Output fields

FieldTypeRequiredNotes
okliteralyesOne of: true

hotel_facts.list

read-only

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:

FieldTypeRequiredNotes
idstringyes
keystringyes
categorystring · nullableyes
valueTranslationsobjectyes
descriptionstring · nullableyes
usedByarray of string · nullableyes
verifiedAtany · nullableyes
updatedAtanyyes

hotel_facts.update

writes

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

FieldTypeRequiredNotes
keystringyesFact key, e.g. 'wifi.password'.
localestringnoBCP-47 locale code, e.g. 'de', 'en', 'fr'. — Default: "de"
valuestringyesThe fact value for this locale.

Output fields

FieldTypeRequiredNotes
idstringyes