curl --location --request PUT 'https://api.challonge.com/v2/races//change_state.json' \
--header 'Accept;' \
--header 'Authorization-Type;' \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"data": {
"type": "RaceState",
"attributes": {
"state": "start"
}
}
}'{
"data": {
"id": "horse_racing_101",
"type": "Race",
"attributes": {
"name": "Horse Racing 101",
"url": "horse_racing_101",
"raceType": "time trial",
"description": "string",
"private": true,
"currentLap": {
"id": 15,
"number": 1
},
"notifications": {
"uponMatchesOpen": true,
"uponTournamentEnds": true
},
"registrationOptions": {
"openSignup": false,
"signupCap": 0
},
"grandPrixOptions": {
"rounds": 4
},
"timestamps": {
"startsAt": "string",
"createdAt": "string",
"updatedAt": "string",
"completedAt": "string"
}
},
"relationships": {
"rounds": {
"links": {
"related": "https://api.challonge.com/<endpoint>/<url>/<relationship>/<relationship_id>.json",
"meta": {
"count": 0
}
}
},
"participants": {
"links": {
"related": "https://api.challonge.com/<endpoint>/<url>/<relationship>/<relationship_id>.json",
"meta": {
"count": 0
}
}
}
},
"links": {
"self": "https://api.challonge.com/races/<url>.json"
}
}
}