This API adds non-standard scoring types to a specified race_series_year_id
.
Non-standard scoring types with a scoring_type_id
will be treated as edits; otherwise, a new scoring type will be added.
If scoring_type_name
is omitted from the non_standard_scoring_types
, the field will remain unchanged.
Note: This endpoint only allows OAuth 2.0 authentication and requires the user to be a director of the race series. It is currently in beta and subject to change.
{ "non_standard_scoring_types": [ { "scoring_type_id": 620, "scoring_type_name": "Updated Scoring" }, { "scoring_type_id": null, "scoring_type_name": "New Scoring" } ] }
{ "added_non_standard_scoring_types": [ { "scoring_type_id": 621, "scoring_type_name": "New Scoring" } ], "updated_non_standard_scoring_types": [ { "scoring_type_id": 620, "scoring_type_name": "Updated Scoring" } ] }
Parameter | HTTP Method | Default | Description | Datatype |
---|---|---|---|---|
Authorization Required |
HTTP Header | OAuth 2.0 Authorization header (e.g. `Bearer ...`). | string |
|
race_series_id Required |
GET | Race series ID. | uint |
|
race_series_year_id Required |
GET | Race series year ID. | uint |
|
request Required |
POST | JSON containing a list of non-standard scoring types. | string |