List courts for this club
GET
/api/v1/clubs/{id}/courts
const url = 'https://internal.myscore.live/api/v1/api/v1/clubs/club_a1b2c3d4/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/clubs/club_a1b2c3d4/courtsReturns all courts belonging to the specified club.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” id
required
string
Example
club_a1b2c3d4Club ID
Responses
Section titled “ Responses ”List of courts
Media type application/json
object
data
required
Array of court records for the club
Array<object>
object
id
required
Unique court identifier
string
clubId
required
Associated club ID
string
number
required
Court number
number
name
Court name
string
surface
Court surface type (e.g., Clay, Hard, Grass)
string
hasBoard
required
Whether the court has a scoreboard installed
boolean
boardId
ID of the board installed on this court
string
currentMatch
ID of the match currently being played on this court
string
createdAt
required
Record creation timestamp
string format: date-time
updatedAt
required
Record last update timestamp
string format: date-time
Example
{ "data": [ { "id": "court_xyz123", "clubId": "club_a1b2c3d4", "number": 1, "name": "Central Court", "surface": "Clay", "hasBoard": true, "boardId": "board_def456", "currentMatch": "match_ghi789", "createdAt": "2024-08-15T10:30:00.000Z", "updatedAt": "2024-09-01T14:20:00.000Z" } ]}Club not found