events
Sync Community Rooms
Cron-triggered endpoint that ensures the right number of voice chatrooms exist for each community hour that's currently active or about to start.
Logic per event:
- Skip if we're not within the [start - lead, start + duration] window.
- Count confirmed RSVPs for the upcoming/current occurrence.
- Compute desired room count: max(1, ceil(rsvp_count / TARGET_PER_ROOM)).
- Count existing chatrooms already auto-created for this occurrence (matched by activity_config.community_event_id).
- Create the difference, all with activity_type=canasta and the right language.
Idempotent — safe to call repeatedly. Uses activity_config.community_event_id as the dedup key so we don't double-spawn within a single occurrence.
post/events/community-rooms/sync
Response
Successful Response
{"stackTrail":"paths:/events/community-rooms/sync:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}
Changes
No recorded changes to this endpoint across all 1 revision of this API.