seasons.update [draft]

Resource information

URLhttps://api.statscore.com/v2/seasons/{season_id}
MethodPATCH

Description

Update resource
Cache
Authorization requiredYes

Method parameters

NameTypeDescription
namexsd:stringSeason name. Can be nullable.
season_name_idxsd:intThe season name 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

Possible values:

  • yes
  • no
surfacexsd:string

Possible values:

  • yes
  • no
statusxsd:string

Season status

Possible values:

  • active
  • inactive

Query parameters

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

Output elements


.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