Meal Space presentation
GET /api/v1/meal-spaces/{groupId}/presentation?membership_id=… reads shared presentation,
the caller's private visibility/order and Today in the space's Planning timezone. It requires
the exact active Membership period and current read access in the same database snapshot.
Absent preferences default to visible with sort_order=a0; the read does not write those defaults.
Another actor's preferences and billing/access internals never enter this projection.
PUT /api/v1/meal-spaces/{groupId}/presentation accepts membership_id, name, color,
planning_timezone, and a nonempty unique enabled_slots array. The database evaluates
space.manage_settings; the credential needs the admin scope. The command changes only those
presentation fields and returns a content-free outcome.
PUT /api/v1/meal-spaces/{groupId}/preferences accepts membership_id, is_visible,
sort_order, and millisecond client_updated_at. Every readable member, including a Viewer in a
read-only space, may change their own preferences. Actor identity comes from authentication.
Newer timestamps win; canonical no-ops advance the conflict clock without publishing content.
Both require an Idempotency-Key. Changed payloads cannot reuse a receipt. Both require the exact active Membership period before replay. The API contracts and generated SDK contain field bounds.
Private preferences remain on the server after departure, unreadable until the account rejoins. Account or Meal Space hard deletion cascades to them. Their journal has a separate actor head. The shared projection excludes ownership, sponsorship, Membership and policy facts.