Add race series participants by user IDs.
If a submitted user ID corresponds to an existing series participant, the API will return the same series participant ID and not create a duplicate entry.
But if the submitted user_defined_id
differs from the existing one, it will be updated to the new value.
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.
{ "columns": [ "user_id", "user_defined_id" ], "participants": [ [70040, "abc-123"], [70041, "abc-124"] ] }
{ "race_series_participants": [ { "row": 1, "race_series_participant_id": 1072 }, { "row": 2, "race_series_participant_id": 1073 }, ] }
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 |
|
race_id Required |
GET | Race ID. | uint |
|
event_id Required |
GET | Event ID. | uint |
|
request Required |
POST | JSON containing the participants that will be uploaded. | string |