A lineup from NorCal availability
plan_lineup_from_availabilityPlans a lineup from the availability a member's agent read on the USTA NorCal league site, so the agent can fill in the lineup form. Pass the team, the match and each player's answer in USTA's own words: yes, No, maybe, call last, First shift only or Second shift only. The result also holds the values for the lineup form, and what to confirm with the member before Save. Each line's win chance needs a Desk Pass after the member's free forecast each week. The Desk never acts on the USTA site, so the member, or their own agent in their own session, presses Save. Call it when someone pastes or describes who can play a match and asks for a lineup.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | The match date, as 2026-10-24. With opponent, or alone. With neither, the plan is for the team's next match. | |
| team | Yes | The member's team: the Desk's team id, which is USTA NorCal's own team id, a link to its team page, or its name. | |
| asked | No | The person's question word for word, never paraphrased. Leave it out rather than invent one. | |
| season | No | Season year. Defaults to the current season. | |
| matchId | No | USTA NorCal's own id for the match, read from the link on the team page. Optional: it fills in the form's path. | |
| opponent | No | The other team in the match, as the schedule names it. With date, or alone. | |
| availability | Yes | Each player's answer, as the agent read it on NorCal's availability grid or as the member pasted it. |