Manage guest, season and meal definitions through the API
Maintain tenant-scoped guest types, seasonal calendars, meal periods and dietary definitions without changing existing booking agreements.
Use the authenticated organization context for /v1/schedule/guest-types, /rate-seasons, /meal-periods and /dietary-needs. Staff sessions and organization API keys discover these configuration operations in the operations index. See API reference for public API conventions.
List and read
GET /v1/schedule/guest-types?limit=50&offset=0&include_inactive=false returns { "data": [...], "total": 1 }. Limits are 1–100. Lists are organization-scoped and exclude archived rows by default. Season lists contain date_range_count; fetch the season by UID to read its date ranges. Detail reads are independent of list filters and pagination.
Reads require schedule.offerings.read and remain available after a feature is switched off. Definition configuration requires schedule.offerings.update, the current scheduling and corresponding feature entitlements, and Meals selected for meal definitions. Machine credentials obey their existing scopes, membership and permission-approval policy; each write consumes one complete current approval cohort and rechecks authority after lock waits.
Create and amend
POST /v1/schedule/guest-types
Authorization: Bearer <access token>
X-Organization-ID: <organization scope>
Content-Type: application/json
{"name":"Child","min_age":3,"max_age":12,"counts_toward_capacity":true}
A successful create returns 201 with:
{"uid":"gtyp_0123456789abcdef","name":"Child","short_label":null,"sort_order":0,"is_active":true,"is_default":false,"counts_toward_capacity":true,"min_age":3,"max_age":12}
Use PATCH /v1/schedule/guest-types/{guest_type_uid} with only changed fields. Omitted fields stay unchanged. Explicit null clears nullable age and short-label fields; it cannot clear name or booleans. Integer identities, tenant fields, audit actors and seed authority are not accepted. Missing, wrong-type and foreign-tenant UIDs return 404.
Setting is_default=true atomically demotes the previous default. Exactly one active default is retained. Archive through is_active=false; the current default first needs an explicit replacement. An age range is guidance, never automatic type assignment. Zero remains meaningful.
Calendars and meal definitions
Season date rows accept inclusive ISO dates and an optional weekday_mask: Monday is bit 0, Sunday bit 6, null means every day. A non-null mask must be 1–127. Seasons at equal priority cannot share an actual date and weekday; rate_season_overlap returns 409 and saves no part of the change. Higher priority wins independently of which rates an offering defines. Unchanged date coordinates retain their UIDs across edits.
GET /v1/schedule/rate-seasons/calendar?month=2026-11 returns one entry per local service date, with its Monday-first weekday and either season: null or the winning season's uid, name, color and priority. It projects at most 31 days without loading every season's date rows. An ambiguous stored calendar returns rate_season_ambiguous, never a choice based on a primary key. Reading the calendar remains permitted when seasonal configuration is switched off.
Meal-period default_start and default_end are nullable local clock values without offsets. They do not allocate inventory. Dietary kind is allergy, preference, religious or other.
Successful changes record before/after data; refused writes retain their canonical denial audit. Definition edits do not amend booking agreements, prices or capacity snapshots. Referenced definitions remain readable after archival. New-organization provisioning, first Meals enable and the versioned release task create only missing defaults and preserve renamed, customized and archived choices.
For operational type choices under booking permissions, see Choose booking guest types through the API.