Add a free agent
add_playerAdd an available free agent to your ESPN fantasy roster, with optional drop of a rostered player in the same transaction. Use for players on free agency, not waivers.
Instructions
Add an available free agent, optionally dropping a rostered player in the same transaction. Use submit_waiver_claim for players on waivers. Player ids are ESPN ids, including negative D/ST ids. teamId is an ESPN fantasy team id and defaults to ESPN_TEAM_ID. week defaults to the current NFL week. dryRun previews the payload without posting. Requires ESPN_S2 and ESPN_SWID.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| week | No | NFL scoring week, defaults to the league's current scoringPeriodId. | |
| dryRun | No | Preview the payload without posting it to ESPN. | |
| teamId | No | ESPN fantasy team id, defaults to ESPN_TEAM_ID. | |
| playerId | Yes | ESPN player id. D/ST ids are negative, such as -16024 for the Chargers. | |
| dropPlayerId | No | ESPN player id. D/ST ids are negative, such as -16024 for the Chargers. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | Yes | ||
| result | No | ||
| payload | Yes |