Courts

Courts

Create a Court

POST
POST /v1/courts
💡
This request requires “PB-API-TOKEN” from the platforms.
Request
{
  "payload": {
    "uuid": "a9891a30-ca43-4386-81c9-5dc7a40d4178",
    "moduleFor": "",
    "moduleID": "test123",
    "locationID": "test",
    "title": "",
    "displayOrder": 0,
    "dateUpdated": "2024-01-03T22:47:18.968732Z",
    "updatedByFullName": "",
    "isWheelchair": false,
    "isGeniusSports": false,
    "tvId": "test"
  }
}
Response
{
  "result": {
    "uuid": "a9891a30-ca43-4386-81c9-5dc7a40d4178",
    "moduleFor": "",
    "moduleID": "test123",
    "locationID": "test",
    "title": "",
    "displayOrder": 0,
    "dateUpdated": "2024-01-03T22:47:18.968732Z",
    "updatedByFullName": "",
    "isWheelchair": false,
    "isGeniusSports": false,
    "tvId": "test"
  }
}

Delete a Court by UUID

DELETE
DELETE /v1/courts/{uuid}
💡
This request requires “PB-API-TOKEN” from the platforms.
Request
Empty 
Response
Empty

List Courts

GET
GET /v1/data/courts
💡
This request requires “PB-API-TOKEN” from the platforms or “PB-USER-TOKEN” from the authenticated user.

Query params:

ParamDescription
page_sizeNumber value that represents number of returned results.
current_pageNumber value that represents offset of returned results.
uuidUUID of the court.
module_idTournament ID.
location_idUUID of the location.
tournament_codeTournament code.
Request
Empty 
Response
{
  "total_records": "1",
  "results": [
    {
      "uuid": "a9891a30-ca43-4386-81c9-5dc7a40d4178",
      "moduleFor": "",
      "moduleID": "test123",
      "locationID": "test",
      "title": "",
      "displayOrder": 0,
      "dateUpdated": "2024-01-03T22:47:18.968732Z",
      "updatedByFullName": "",
      "isWheelchair": false,
      "isGeniusSports": false,
      "tvId": "test"
    }
  ]
}

List a Single Court

GET
GET /v1/data/courts/{uuid}
💡
This request requires “PB-API-TOKEN” from the platforms.
Request
Empty 
Response
{
  "uuid": "a9891a30-ca43-4386-81c9-5dc7a40d4178",
  "moduleFor": "",
  "moduleID": "test123",
  "locationID": "test",
  "title": "",
  "displayOrder": 0,
  "dateUpdated": "2024-01-03T22:47:18.968732Z",
  "updatedByFullName": "",
  "isWheelchair": false,
  "isGeniusSports": false,
  "tvId": "test"
}

List Courts Status

GET
GET /v1/courts_data/statuses
💡
This request requires “PB-API-TOKEN” from the platforms.
Query paramDescription
module_idTournament ID.
location_codeLocation code.
location_idUUID of the location.
tournament_codeTournament code.
Request
Empty 
Response
{
  "results": [
    {
      "VenueName": "",
      "VenueAltName": "",
      "Title": "1",
      "Current_EventTitle": "",
      "Current_T1_P1_Name": "",
      "Current_T1_P1_Country": "",
      "Current_T1_P2_Name": "",
      "Current_T1_P2_Country": "",
      "Current_T2_P1_Name": "",
      "Current_T2_P1_Country": "",
      "Current_T2_P2_Name": "",
      "Current_T2_P2_Country": "",
      "Current_T1_SeedNumber": "0",
      "Current_T2_SeedNumber": "0",
      "Current_MinutesPlayed": "0",
      "Next_EventTitle": "",
      "Next_T1_P1_Name": "",
      "Next_T1_P1_Country": "",
      "Next_T1_P2_Name": "",
      "Next_T1_P2_Country": "",
      "Next_T2_P1_Name": "",
      "Next_T2_P1_Country": "",
      "Next_T2_P2_Name": "",
      "Next_T2_P2_Country": "",
      "Next_T1_SeedNumber": "0",
      "Next_T2_SeedNumber": "0",
      "Tvid": ""
    }
  ]
}

Update a Court

PUT
PUT /v1/courts/{uuid}
💡
This request requires “PB-API-TOKEN” from the platforms.
Request
{
  "payload": {
    "uuid": "a9891a30-ca43-4386-81c9-5dc7a40d4178",
    "moduleFor": "",
    "moduleID": "test123",
    "locationID": "test",
    "title": "",
    "displayOrder": 0,
    "dateUpdated": "2024-01-03T22:47:18.968732Z",
    "updatedByFullName": "",
    "isWheelchair": false,
    "isGeniusSports": false,
    "tvId": "test"
  }
}
Response
{
  "result": {
    "uuid": "a9891a30-ca43-4386-81c9-5dc7a40d4178",
    "moduleFor": "",
    "moduleID": "test123",
    "locationID": "test",
    "title": "",
    "displayOrder": 0,
    "dateUpdated": "2024-01-03T22:47:18.968732Z",
    "updatedByFullName": "",
    "isWheelchair": false,
    "isGeniusSports": false,
    "tvId": "test"
  }
}

Upsert a Court

POST
/v1/courts/{uuid}
💡
This request requires “PB-API-TOKEN” from the platforms.
Request
{
  "payload": {
    "uuid": "a9891a30-ca43-4386-81c9-5dc7a40d4178",
    "moduleFor": "",
    "moduleID": "test123",
    "locationID": "test",
    "title": "",
    "displayOrder": 0,
    "dateUpdated": "2024-01-03T22:47:18.968732Z",
    "updatedByFullName": "",
    "isWheelchair": false,
    "isGeniusSports": false,
    "tvId": "test"
  }
}
Response
{
  "result": {
    "uuid": "a9891a30-ca43-4386-81c9-5dc7a40d4178",
    "moduleFor": "",
    "moduleID": "test123",
    "locationID": "test",
    "title": "",
    "displayOrder": 0,
    "dateUpdated": "2024-01-03T22:47:18.968732Z",
    "updatedByFullName": "",
    "isWheelchair": false,
    "isGeniusSports": false,
    "tvId": "test"
  }
}