Record covered seatings
Link actual meal-plan and seating participants for kitchen counts while preserving charges, capacity and private details.
A covered-seating link identifies participants already represented by both an actual meal-plan item and an actual customer seating on the same reservation. It combines their kitchen counts. Charges, source guest counts and physical allocations stay as recorded; linking never waives a charge.
Start with
POST /v1/schedule/reservations/{reservation_uid}/items/{item_uid}/meal-fulfillments/preview.
The path item is the meal plan. Send seating_item_uid, the local
service_date and the recorded meal_period_uid. Both sources must belong
to the same customer, branch and current reservation membership. Unknown
coverage or guest counts need their ordinary explicit review first.
The read returns each source's operational context and a review_token.
This value compares the exact link and current work context; it grants no
permission or identity. A different coordinate requires its own preview.
Association identifiers and database keys are never returned.
Use GET on the same path without /preview for saved-link summaries.
Append /seatings to list current seating choices on this reservation, with
their own recorded periods and local dates. Both reads use limit (1–100,
default 50) and offset, and return complete totals. The seating selector's
optional q searches the human meal number without case sensitivity.
Unknown or unreadable coverage stays explicit; choosing an item never
replaces the later admission checks. Summaries carry no names, dietary
detail, prices or edit tokens, so always open a fresh preview before editing.
Preview participant changes
Send anonymous_changes with guest_type_uid, expected_count and the new
count for each changed type. Omitted types are preserved. Optional
add_guest_uids and remove_guest_uids are bounded deltas; omitted names
are preserved. A named guest must already occupy the actual type slot on
both source items. Matching display names or totals never establishes that
identity.
All named source slots are excluded from anonymous availability. Shared sources are checked cumulatively across their covered links, so a second plan cannot reuse anonymous people already counted through another link.
Preview and save both enforce the original current permission cohort:
- Parent and meal read are required for preview; save also needs meal update.
- Named deltas or
include_named: truerequire roster read. include_dietary: truerequires meal-requirements read. Without it, every clinical field, including review status and basis, is omitted.- An explicit
need_reviewon save requires meal-requirements read and update.
Save an explicit review
Use PUT on the same path without /preview, including
expected_review_token and the proposed participant deltas. A stale context
returns 409 meal_fulfillment_changed; reload and review it explicitly.
Anonymous dietary overlap is unknown until reviewed. A clinical preview
returns the proposed need_basis and the two sources' recorded anonymous
requirements. Submit need_review with expected_need_basis and explicit
per-type, per-need counts. An empty counts list is a reviewed zero
intersection. Different needs can overlap; each review still has to fit the
actual participants and every linked source.
Omitting need_review preserves the saved review and all its children. A
participant change that invalidates it is refused; it never silently clears
the review or adopts a new basis. Named participants' needs follow their
actual shared identity without an inferred anonymous match.
Close a link
Use POST with /close, the same coordinate and its current
expected_review_token. Parent read and meal read/update suffice; hidden
guest or clinical detail is neither requested nor discarded. All old link
versions and children remain in history. Existing-work reads and closeout
remain available under their ordinary permissions after creation switches
are turned off. Archived customers keep their canonical read-only policy.
Moving or removing linked work requires resolving its active links first. Ordinary source changes check the same invariant. Cancellation remains a deliberate ordinary action and removes inactive work from kitchen counts.