seasons.update [draft]
Resource information
URL | https://api.statscore.com/v2/seasons/{season_id} |
---|---|
Method | PATCH |
Description | Update resource |
Cache | |
Authorization required | Yes |
Method parameters
Name | Type | Description |
---|---|---|
name | xsd:string | Season name. Can be nullable. |
season_name_id | xsd:int | The season name identifier. |
range_level | xsd:int | Season range level. Min 1. |
update_ranges | xsd:bool | If true then update all ranges which max range is same or less then season range level. |
start_date | xsd:string | Season start date. Can be nullable. Default format: "YYYY-MM-DD" |
end_date | xsd:string | Season end date. Can be nullable. Default format: "YYYY-MM-DD" |
ft_only | xsd:string | Possible values:
|
surface | xsd:string | Possible values:
|
status | xsd:string | Season status Possible values:
|
Query parameters
Name | Type | Description |
---|---|---|
token | xsd:string | REQUIRED. More information concerning authorization in API introduction section |
Output elements
.season | |
---|---|
id | Unique identifier for the season |
name | Season name |
range_level | Level |
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 | |
surface | Surface type |
season_name_id | Unique identifier for season name |
competition_id | Unique identifier for the competition in which the season is played |
sport_id | Unique identifier for the sport in which the season is played |