set_lineup
Set your fantasy football starting lineup for a week by supplying player names in slot order, with a dry run by default until confirmed.
Instructions
WRITE. Set your starting lineup for a week.
Takes player NAMES in SLOT ORDER. The slots come from your league's own
roster_positions, so a superflex or 3-WR league works correctly without
configuration — call league_info to see the order you must supply.
In-week changes work, including on a lineup containing players whose games have already kicked off; only the locked players themselves are immovable.
Args: players_in_slot_order: One name per starting slot, in order. Use a team code for a defence, e.g. "NE". league_id_: Defaults to SLEEPER_LEAGUE_ID. roster_id_: Defaults to SLEEPER_ROSTER_ID. week: NFL week. 0 (default) uses the current week. confirm: Must be True to send. Default False = dry run.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| week | No | ||
| confirm | No | ||
| league_id_ | No | ||
| roster_id_ | No | ||
| players_in_slot_order | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |