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
| Field | Type | Required | Notes |
|---|---|---|---|
guestId | string | yes | |
email | string | yes |
Output fields
| Field | Type | Required | Notes |
|---|---|---|---|
ok | literal | yes | One of: true |