Set Lineup
set_lineupApply a batch of lineup moves to one team after validating eligibility and roster limits. Invalid or locked moves are rejected with reasons and never sent.
Instructions
Apply a batch of lineup moves to one team. Validates every move locally first (player is on the roster, target slot is eligible, player isn't locked, and the resulting lineup respects the league's slot counts) before sending anything. Rejected moves are reported with a reason and never sent.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| moves | Yes | ||
| sport | No | ffl (football), fba (basketball), or flb (baseball). Defaults to ESPN_SPORT. | ffl |
| season | No | Season year. Defaults to ESPN_SEASON. | |
| dry_run | No | Default true: validates and reports what would be sent without sending it. Set false to actually execute (still a no-op if WRITES_ENABLED=false in .env). | |
| team_id | No | ||
| league_id | No | ESPN league id. Defaults to ESPN_LEAGUE_ID. | 123456 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sent | No | ||
| dryRun | Yes | ||
| response | No | ||
| wouldSend | No | ||
| validation | Yes | ||
| verification | No | ||
| blockedReason | No |