FoyerDevelopers

Generated · Live registry

guests tools

1 tool in this domain, generated from the running registry.

All tool domains

guests.set-email

writes

Set the canonical email (guests.canonical_email) for a guest — the address all mail goes to. The previous address (usually the channel relay, e.g. …@guest.booking.com) is kept in guests.weitere_email, not lost. Tenant-scoped via RLS — only the guest's own tenant can update it. Returns { ok: true } or throws if guest not found. DRY: delegates to the shared setGuestEmail() function (same as the tRPC router).

Input parameters

FieldTypeRequiredNotes
guestIdstringyes
emailstringyes

Output fields

FieldTypeRequiredNotes
okliteralyesOne of: true