Set daily lineup
set_lineupAssign players to roster positions (1B, OF, SP, Util, BN) for a given date. Confirm before execution to update your Yahoo fantasy baseball lineup.
Instructions
DESTRUCTIVE: changes your real Yahoo roster positions for a given date. Provide assignments mapping each playerKey to a roster position (e.g. 1B, OF, SP, Util, or BN for bench). Players not listed keep their current slot. Defaults to your configured team and today's date. Confirm the lineup with the user before calling this.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Date as YYYY-MM-DD; defaults to today | |
| force | No | Set to true to attempt the action even though write access is not officially supported | |
| teamKey | No | Team key; defaults to configured team | |
| assignments | Yes | Player-to-position assignments |