curl --location --request PUT 'https://api.challonge.com/v2.1/tournaments//matches//change_state.json?community_id' \
--header 'Accept;' \
--header 'Authorization-Type;' \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"data": {
"type": "MatchState",
"attributes": {
"state": "reopen"
}
}
}'{
"id": "8008135",
"type": "match",
"attributes": {
"state": "complete",
"round": 1,
"identifier": "A",
"suggested_play_order": 1,
"scores": "2 - 0",
"score_in_sets": [
[
3,
1
],
[
4,
2
]
],
"points_by_participant": [
{
"participant_id": 355,
"scores": [
3,
4
]
},
{
"participant_id": 354,
"scores": [
1,
2
]
}
],
"timestamps": {
"created_at": "2023-04-21T14:29:06.374Z",
"updated_at": "2023-04-21T14:31:45.981Z"
},
"winner_id": 355,
"relationships": {
"player1": {
"data": {
"id": "355",
"type": "participant"
}
},
"player2": {
"data": {
"id": "354",
"type": "participant"
}
}
}
}
}