apply_preview
ChatGPTSave exactly what a preview showed (roster, schedule, attendance, removals, squad moves, contact removals or coaching notes), after the person has confirmed it. Refuses if what it would change was changed by someone else since the preview. Safe to call again: it never saves anything twice.
get_balances
ChatGPTPer athlete: amount owed, amount paid and number of open charges, largest balance first. Amounts are in US cents. Only staff who handle money can see this.
get_event_attendance
ChatGPTFor one event: how many athletes said they're coming, maybe or not, and for staff each athlete's answer and whether they checked in.
get_past_due
ChatGPTCharges that are late under the club's own grace period: who, what, how much (US cents) and how many days late. Empty, with a note, if the club hasn't set a grace period.
get_roster
ChatGPTThe team's athletes: id, name, grouping (for wrestling, the weight class), age, and how many family contacts each has.
get_schedule
ChatGPTThe team's practices, competitions and other events, soonest first (or, with include_past, most recent first). Pass the club's time zone to get each event's local start and end; otherwise times are UTC timestamps to convert before showing them. Practices made as a repeating series share a series_id.
get_season_attendance
ChatGPTHow many practices each athlete has checked in to, the date they were last seen, and how many practices the team has held, for the whole record or since a date. An athlete's count follows them across squads.
get_team_overview
ChatGPTA one-call summary of a team: how many athletes, the next event, and (for staff who handle money) how much is outstanding and collected. Amounts are in US cents.
list_my_teams
ChatGPTThe teams you coach or administer in WinningTeam Sync, with your role on each. Every other tool takes a team_id from this list.
preview_attendance
ChatGPTPlan marking who was present or absent at a practice or event that has started: from a sign-in sheet, a list of names, or what the person says. Names are matched to the roster (a name that isn't clear comes back as a question). Nothing is saved: you get a summary for the person to review and a preview_id for apply_preview once they confirm. A change that would touch money (a check-in that adds a session charge or uses a prepaid session, or un-marking that removes a charge) can't be made from here: it's listed for the person to make in the WinningTeam Sync app.
preview_coaching_notes
ChatGPTPlan adding coaching notes about athletes, or a team note: from a match sheet, a practice recap, or what the coach dictates. Each note is saved as written by the signed-in coach, exactly as if they had typed it. Nothing is saved yet: you get each note's words back for the person to review, questions about any name that isn't clear, and a preview_id for apply_preview once they confirm. Notes can be added but not read from here. Coaches only.
preview_contact_removals
ChatGPTPlan removing family contacts the club entered for athletes (an old phone number's owner, a contact added by mistake). Replacing a contact is a removal here plus an add in preview_roster_changes. A parent's own account can't be removed here: it's listed for the person to do in the app. Nothing is saved: you get a summary and a preview_id for apply_preview once the person confirms.
preview_event_cancellations
ChatGPTPlan cancelling (deleting) upcoming events: a practice that's called off, a meet that won't happen, or the rest of a repeating practice from a date ("no more Thursday practices after December"). Send event_ids from get_schedule, and/or series with the series_id get_schedule shows on a repeating practice. Nothing is cancelled yet: you get every event in the club's own time for the person to review, and a preview_id for apply_preview once they confirm. Events that already happened can't be cancelled: they keep their attendance and notes.
preview_roster_changes
ChatGPTPlan adding or updating athletes and their family contacts, from a spreadsheet or from what the person says. Send the athletes as clean records, in any order; WinningTeam Sync matches them to the roster itself. Nothing is saved: you get a summary for the person to review, questions about names that might be someone already on the roster, and a preview_id for apply_preview once they confirm. Fields you leave out are left as they are; contacts are never removed.
preview_roster_removals
ChatGPTPlan taking athletes off a team's roster (someone who left the club, a duplicate). Their notes, reports and attendance are kept. Nothing is saved: you get a summary for the person to review and a preview_id for apply_preview once they confirm. An athlete on a membership plan or owing money can't be removed from here: it's listed for the person to settle in the WinningTeam Sync app first.
preview_schedule_changes
ChatGPTPlan adding, changing or CANCELLING events: a meet, an extra practice, repeating practices ("Tue and Thu 6–8pm from Nov 4 to Mar 6"), moving or editing an event already on the schedule, or cancelling (deleting) an upcoming one, from a list or from what the person says. All times are wall-clock times in timezone, the club's IANA time zone. Nothing is saved: you get every date in that zone for the person to review, questions about anything that might duplicate the schedule, and a preview_id for apply_preview once they confirm. To cancel upcoming events, send each with its event_id and cancel: true (past events stay: they can carry attendance and notes).
preview_squad_moves
ChatGPTPlan moving athletes from one squad to another in the same club (a group moving up from beginners to advanced). Their notes, reports, attendance and charges go with them. Nothing is saved: you get a summary and a preview_id for apply_preview once the person confirms. They must coach or administer both squads.