Referees
Referee App Prematch

Referee APP - Prematch

Create Prematch

POST
/v1/referee/prematches
💡
This request requires “PB-API-TOKEN” from the platforms.
Request
{
    "payload": {
        "uuid": "4237f338-e479-4750-b197-a2ce6ba8ff1a",
        "match_uuid": "c0e23d7a-e1ea-4080-806d-230ee5ab59d2",
        "start_prematch_setup": "2022-11-29T10:12:06.966Z",
        "players_on_court": "2022-11-29T10:12:06.966Z",
        "warmup_start": "2022-11-29T10:12:06.966Z",
        "team_one_player_one_note": "Hi i am player one1",
        "team_one_player_two_note": "Hi i am player two1",
        "team_two_player_one_note": "Hi i am player one2",
        "team_two_player_two_note": "Hi i am player two2",
        "coin_toss": "2022-11-29T10:12:06.966Z",
        "coin_toss_team_uuid": "2023-09-11T19:28:58.244013984Z",
        "start_live_scoring": "2022-11-29T10:12:06.966Z",
        "date_created": "2023-09-11T19:28:58.244013984Z"
    }
}
Response
{
    "result": {
        "uuid": "4237f338-e479-4750-b197-a2ce6ba8ff1a",
        "match_uuid": "c0e23d7a-e1ea-4080-806d-230ee5ab59d2",
        "start_prematch_setup": "2022-11-29T10:12:06.966Z",
        "players_on_court": "2022-11-29T10:12:06.966Z",
        "warmup_start": "2022-11-29T10:12:06.966Z",
        "team_one_player_one_note": "Hi i am player one1",
        "team_one_player_two_note": "Hi i am player two1",
        "team_two_player_one_note": "Hi i am player one2",
        "team_two_player_two_note": "Hi i am player two2",
        "coin_toss": "2022-11-29T10:12:06.966Z",
        "coin_toss_team_uuid": "2023-09-11T19:28:58.244013984Z",
        "start_live_scoring": "2022-11-29T10:12:06.966Z",
        "date_created": "2023-09-11T19:28:58.244013984Z"
    }
}

Delete Prematch

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

List Prematches

GET
/v1/referee/prematches?match_uuid={match_uuid}
💡
This request requires “PB-API-TOKEN” from the platforms.
Query paramDescription
retrieve_allRetrieve all results.
Response
{
   "total_records": "2",
   "results": [
       {
            "uuid": "4237f338-e479-4750-b197-a2ce6ba8ff1a",
            "match_uuid": "c0e23d7a-e1ea-4080-806d-230ee5ab59d2",
            "start_prematch_setup": "2022-11-29T10:12:06.966Z",
            "players_on_court": "2022-11-29T10:12:06.966Z",
            "warmup_start": "2022-11-29T10:12:06.966Z",
            "team_one_player_one_note": "Hi i am player one1",
            "team_one_player_two_note": "Hi i am player two1",
            "team_two_player_one_note": "Hi i am player one2",
            "team_two_player_two_note": "Hi i am player two2",
            "coin_toss": "2022-11-29T10:12:06.966Z",
            "coin_toss_team_uuid": "2023-09-11T19:28:58.244013984Z",
            "start_live_scoring": "2022-11-29T10:12:06.966Z",
            "date_created": "2023-09-11T19:28:58.244013984Z"
       },..
 
   ]
}

List Single Prematch

GET
/v1/referee/prematches/{uuid}
💡
This request requires “PB-API-TOKEN” from the platforms.
Response
{
    "result": {
        "uuid": "4237f338-e479-4750-b197-a2ce6ba8ff1a",
        "match_uuid": "c0e23d7a-e1ea-4080-806d-230ee5ab59d2",
        "start_prematch_setup": "2022-11-29T10:12:06.966Z",
        "players_on_court": "2022-11-29T10:12:06.966Z",
        "warmup_start": "2022-11-29T10:12:06.966Z",
        "team_one_player_one_note": "Hi i am player one1",
        "team_one_player_two_note": "Hi i am player two1",
        "team_two_player_one_note": "Hi i am player one2",
        "team_two_player_two_note": "Hi i am player two2",
        "coin_toss": "2022-11-29T10:12:06.966Z",
        "coin_toss_team_uuid": "2023-09-11T19:28:58.244013984Z",
        "start_live_scoring": "2022-11-29T10:12:06.966Z",
        "date_created": "2023-09-11T19:28:58.244013984Z"
    }
}

Update Prematch

PUT
/v1/referee/prematches/{uuid}
💡
This request requires “PB-API-TOKEN” from the platforms.
Request
{
    "payload": {
        "uuid": "4237f338-e479-4750-b197-a2ce6ba8ff1a",
        "match_uuid": "c0e23d7a-e1ea-4080-806d-230ee5ab59d2",
        "start_prematch_setup": "2022-11-29T10:12:06.966Z",
        "players_on_court": "2022-11-29T10:12:06.966Z",
        "warmup_start": "2022-11-29T10:12:06.966Z",
        "team_one_player_one_note": "Hi i am player one1",
        "team_one_player_two_note": "Hi i am player two1",
        "team_two_player_one_note": "Hi i am player one2",
        "team_two_player_two_note": "Hi i am player two2",
        "coin_toss": "2022-11-29T10:12:06.966Z",
        "coin_toss_team_uuid": "2023-09-11T19:28:58.244013984Z",
        "start_live_scoring": "2022-11-29T10:12:06.966Z",
        "date_created": "2023-09-11T19:28:58.244013984Z"
    }
}
Response
{
    "result": {
        "uuid": "4237f338-e479-4750-b197-a2ce6ba8ff1a",
        "match_uuid": "c0e23d7a-e1ea-4080-806d-230ee5ab59d2",
        "start_prematch_setup": "2022-11-29T10:12:06.966Z",
        "players_on_court": "2022-11-29T10:12:06.966Z",
        "warmup_start": "2022-11-29T10:12:06.966Z",
        "team_one_player_one_note": "Hi i am player one1",
        "team_one_player_two_note": "Hi i am player two1",
        "team_two_player_one_note": "Hi i am player one2",
        "team_two_player_two_note": "Hi i am player two2",
        "coin_toss": "2022-11-29T10:12:06.966Z",
        "coin_toss_team_uuid": "2023-09-11T19:28:58.244013984Z",
        "start_live_scoring": "2022-11-29T10:12:06.966Z",
        "date_created": "2023-09-11T19:28:58.244013984Z"
    }
}