Get all courts from all host clubs
GET
/api/v1/tournaments/{id}/courts
const url = 'https://internal.myscore.live/api/v1/api/v1/tournaments/trn_abc123/courts';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://internal.myscore.live/api/v1/api/v1/tournaments/trn_abc123/courtsPublic endpoint. Returns the union of courts across every host club attached to the tournament.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” id
required
string
Example
trn_abc123Tournament ID
Responses
Section titled “ Responses ”List of courts
Media type application/json
Array<object>
object
id
required
Court ID
string
name
required
Court name
string
clubId
required
Club ID
string
surface
Surface type
string
createdAt
required
Record creation timestamp
string format: date-time
updatedAt
required
Record last update timestamp
string format: date-time
Example
[ { "id": "crt_abc123", "name": "Center Court", "clubId": "club_abc123", "surface": "clay", "createdAt": "2024-08-15T10:30:00.000Z", "updatedAt": "2024-09-01T14:20:00.000Z" }]Tournament not found