Skip to content

List courts for this club

GET
/api/v1/clubs/{id}/courts
curl --request GET \
--url https://internal.myscore.live/api/v1/api/v1/clubs/club_a1b2c3d4/courts

Returns all courts belonging to the specified club.

id
required
string
Example
club_a1b2c3d4

Club ID

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
>= 1
name

Court name

string
nullable
surface

Court surface type (e.g., Clay, Hard, Grass)

string
nullable
Allowed values: Clay Hard Grass Carpet Artificial Clay
hasBoard
required

Whether the court has a scoreboard installed

boolean
boardId

ID of the board installed on this court

string
nullable
currentMatch

ID of the match currently being played on this court

string
nullable
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