Tournaments
Tournament Referee

Tournament Referee

Delete Tournament Referee

DELETE
/v1/tournament_referee
💡
This request requires “PB-API-TOKEN” from the platforms.
ParamDescription
tournament_uuidDelete all referees with selected tournament_uuid.
uuidDelete single referee with selected uuid.
Request
Empty 
Response
Empty 

List Tournament Referee

GET
/v1/data/tournament_referee
💡
This request requires “PB-API-TOKEN” from the platforms or “PB-USER-TOKEN” from the authenticated user.
ParamDescription
tournament_uuidTournament uuid.
user_uuidUser uuid.
Request
Empty 
Response
{
    "totalRecords": "1",
    "result": [
        {
            "uuid": "984fc06c-89df-4dd0-a0c9-3a49ba2e1940",
            "tournamentUuid": "ff915d31-ca5b-4221-ba7e-d9af3ed78fdd",
            "userUuid": "6194dd37-d512-4f04-805a-3264bffed5e2",
            "firstName": "John",
            "lastName": "Doed",
            "nameSuffix": "JR"
        }
    ]
}

List Single Tournament Referee

GET
/v1/data/tournament_referee/{uuid}
💡
This request requires “PB-API-TOKEN” from the platforms.
Request
Empty 
Response
{
    "uuid": "984fc06c-89df-4dd0-a0c9-3a49ba2e1940",
    "tournamentUuid": "ff915d31-ca5b-4221-ba7e-d9af3ed78fdd",
    "userUuid": "6194dd37-d512-4f04-805a-3264bffed5e2"
}

Delete Bulk Tournament Referees By Tournament Uuid

DELETE
/v1/tournament_referee/{tournament_uuid}
💡
This request requires “PB-API-TOKEN” from the platforms.

Upsert Tournament Referees

POST
/v1/tournament_referee/upsert
💡
This request requires “PB-API-TOKEN” from the platforms.
Request
{
    "payload":{
        "tournament_uuid":"ff915d31-ca5b-4221-ba7e-d9af3ed78fdd",
        "user_uuid":"00005470-ccfc-4945-bb98-5feaecba47dd"
    },
    "fieldsToOmit":[]
}
Response
{
    "result": {
        "uuid": "c87b5b2e-d230-4fbd-b894-3cf0162f8b0b",
        "tournamentUuid": "ff915d31-ca5b-4221-ba7e-d9af3ed78fdd",
        "userUuid": "00005470-ccfc-4945-bb98-5feaecba47dd"
    }
}