Submit availability
submit_availabilitySave (or replace) one person's availability: the candidate start keys they can make, from get_event.startOptions. The person is identified by identity, not by name: the same identity later overwrites the same row (and can rename it), a different identity with the same name is a second participant. Keys outside the event's start options are rejected. Returns the updated ranking.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Display name, 1-20 chars, may repeat. e.g. 小明 | |
| slug | Yes | Event slug from the URL, e.g. calm-otter-4821 (sync.day/calm-otter-4821) | |
| starts | Yes | Start keys like 2026-09-05T14:00. Empty array clears this person's picks. | |
| identity | Yes | Random secret for this person that you generate and keep per person, 16-256 chars (e.g. 32 hex chars; NOT a plain user id or name, since anyone who guesses it can act as them). Same identity = same participant; the server stores only a hash. Example: 3f9a1c77b2e04d5e8a61f0c9d2b7e415 |