Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Resource information

URLhttps://api.softnetsport.com/v2/seasons
XSDhttps://api.softnetsport.com/assets/API/docs/xsd/seasons.create.xsd
MethodPOST

Description

Create new resource
Cache
Authorization requiredYes

Method parameters

NameTypeDescription
namexsd:stringSeason name. Can be nullable.
season_name_idxsd:intRequired The season name identifier.
sport_idxsd:intRequired The sport unique identifier.
competition_idxsd:intRequired The competition unique identifier.
range_levelxsd:intSeason range level. Min 1.
update_rangesxsd:boolIf true then update all ranges which max range is same or less then season range level.
start_datexsd:stringSeason start date. Can be nullable. Default format: "YYYY-MM-DD"
end_datexsd:stringSeason end date. Can be nullable. Default format: "YYYY-MM-DD"
ft_onlyxsd:string

Required

Possible values:

  • yes
  • no
surfacexsd:string

Required

Possible values:

  • yes
  • no
statusxsd:string

Required Season status

Possible values:

  • active
  • inactive

Query parameters

NameTypeDescription
tokenxsd:stringREQUIRED. More information concerning authorization in API introduction section

Output elements


.

competition

season


idUnique identifier for the season
nameSeason name
range_levelLevel
start_date

Season start date. Default format: "YYYY-MM-DD"

end_date

Season start date. Default format: "YYYY-MM-DD"

status

Season status

ft_only
surfaceSurface type
season_name_id

Unique identifier for season name

competition_idUnique identifier for the competition in which the season is played
sport_idUnique identifier for the sport in which the season is played