Create event
create_eventCreate a sync.day availability poll and get its share link. Candidate days run from startDate to endDate (inclusive; or give days instead). Each day offers candidate START times from hourFrom, every startStepMinutes, as long as start + durationMinutes <= hourTo. Returns slug, public url (share this), adminUrl and adminKey (keep private; needed for update_event / remove_participant). Example: 周六周日下午聚餐 3 小时 -> {title:'周末聚餐', startDate:'2026-09-05', endDate:'2026-09-06', hourFrom:13, hourTo:18, durationMinutes:180, startStepMinutes:60}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Number of consecutive days from startDate (1-21); alternative to endDate. | |
| title | Yes | Event name, max 60 chars. e.g. 周末聚餐, Team sync | |
| hourTo | Yes | End of each day's window, exclusive (1-24), must be > hourFrom. e.g. 22 | |
| endDate | No | Last candidate day, inclusive, YYYY-MM-DD (same as startDate for a single day; at most 21 days). Give this or days; endDate wins when both are set. | |
| hourFrom | Yes | Earliest hour of each day (0-23). e.g. 9 | |
| question | No | Optional prompt shown to participants, max 200 chars. e.g. 哪天晚上有空? | |
| startDate | Yes | First candidate day, YYYY-MM-DD. e.g. 2026-09-05 | |
| durationMinutes | Yes | Event length in minutes. One of 30, 60, 90, 120, 180, 240, 480. | |
| startStepMinutes | No | Gap between candidate start times in minutes: 30 or 60 (default 60). |