fantasy

Save one of my Fantacalcio squads

Saves the 25 players you own in one team, as player codes, plus the Classic options your league changed, substitution_mode among them (traditional, hybrid or dynamic, hybrid when omitted). Every code is checked against this season's catalog and the ROLES come from that catalog, never from this request, which is what makes the 3 keepers, 8 defenders, 8 midfielders and 6 forwards check mean something. A code the catalog does not carry is refused with that code in the message rather than guessed at. Resolve names with GET /v1/fantasy/fantacalcio/players first. The save REPLACES that team's squad rather than adding to it, and it bumps a revision, which is how advice computed on the previous squad is marked stale. Saving one team never touches another. This changes Predixsport private state only. It never signs in to any fantasy platform and never changes your squad there. Requires mcp:read and fantasy:fantacalcio:write. The Fantacalcio workspace is in a private beta: this endpoint answers 403 for an account outside it.

put/v1/fantasy/fantacalcio/me/roster

Request

  • Base URL: https://api.predixsport.com (the document declares no server; this is the origin it was published from)
  • URL: https://api.predixsport.com/v1/fantasy/fantacalcio/me/roster
  • Auth: none declared

Headers

authorizationstring nullable

Request body

seasonstring required
teaminteger nullable

Team slot. Omitted saves the first one.

team_namestring required
mode'classic'

Only Classic is served. Mantra is not.

Response

Successful Response

seasonstring required
teaminteger required
modestring required
team_namestring required
statusstring required
revisioninteger required
updated_atstring date-time required

Changes

No recorded changes to this operation across all 1 revision of this API.