seasons.create [draft]
Resource information
URL | https://api.statscore.com/v2/seasons |
---|---|
Method | POST |
Description | Create new resource |
Cache | |
Authorization required | Yes |
Method parameters
Name | Type | Description |
---|---|---|
name | xsd:string | Season name. Can be nullable. |
season_name_id | xsd:int | Required The season name identifier. |
sport_id | xsd:int | Required The sport unique identifier. |
competition_id | xsd:int | Required The competition unique 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 | Required Possible values:
|
surface | xsd:string | Required Possible values:
|
status | xsd:string | Required 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 |