Download a tournament match's files (admin)
GET
/api/matches/{match_id}/log
const url = 'https://foxleague.ai/api/matches/1/log?kind=example';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://foxleague.ai/api/matches/1/log?kind=example'The files of a tournament or challenge match whose broadcast has ended, asked by its match id, as an attachment: kind=rcg the recording, kind=rcl the match server’s command log. For admins: anyone else gets 404 for every id and downloads them by the public id (GET /api/public/tournament-match/{id}/log).
Who: an admin.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” match_id
required
integer format: int32
The match id.
Query Parameters
Section titled “Query Parameters ” kind
required
string
rcg for the recording or rcl for the match server’s command log.
Responses
Section titled “ Responses ”Success or a refusal: read success (the refusals are in the description).
Media type application/octet-stream
Array<integer>
kind is not rcg or rcl.
Another source than the archive was asked for by anyone but an admin.
Not an admin; no such tournament or challenge match, its broadcast has not ended yet, it has no recording or the requested file does not exist.
A server read failed. The body is empty.