Tournaments
Teams

Teams

Create Team

POST
/v1/teams
💡
This request requires “PB-API-TOKEN” from the platforms.
Request
{
  "payload":{
    "player_one_uuid":"9F56537A-3C8C-463B-B8E6-175A891065E2",
    "player_two_uuid":"2023-09-11T19:28:58.244013984Z",
    "ranking":2,
    "rating":2.2,
    "seed":1,
    "player_one_rank":1,
    "player_one_rating":1.5,
    "player_two_rank":2,
    "player_two_rating":2.5,
    "event_uuid":"422b3354-0f9c-431f-a8b9-f9e96931b15e",
    "tournament_uuid":"422b3354-0f9c-431f-a8b9-f9e96931b15e",
    "ratingGamesPlayed": "0",
    "attendee_event_id_1": "",
    "attendee_event_id_2": ""
  }
}
Response
{
  "payload":{
    "player_one_uuid":"9F56537A-3C8C-463B-B8E6-175A891065E2",
    "player_two_uuid":"2023-09-11T19:28:58.244013984Z",
    "uuid":"9F56537A-3C8C-463B-B8E6-175A891065E2",
    "ranking":2,
    "rating":2.2,
    "seed":1,
    "player_one_rank":1,
    "player_one_rating":1.5,
    "player_two_rank":2,
    "player_two_rating":2.5,
    "event_uuid":"422b3354-0f9c-431f-a8b9-f9e96931b15e",
    "tournament_uuid":"422b3354-0f9c-431f-a8b9-f9e96931b15e",
    "ratingGamesPlayed": "0",
    "attendee_event_id_1": "",
    "attendee_event_id_2": ""
  }
}

Delete Team

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

Delete Bulk Teams By Event Uuid

DELETE
/v1/teams?event_uuid=xxx
💡
This request requires “PB-API-TOKEN” from the platforms.
Request
Empty 
Response
Empty

List Teams

GET
/v1/data/teams
💡
This request requires “PB-API-TOKEN” from the platforms or “PB-USER-TOKEN” from the authenticated user.
Request
Empty 
Response
{
  "total_records": "1",
  "results": [
    {
      "player_one_uuid":"9F56537A-3C8C-463B-B8E6-175A891065E2",
      "player_two_uuid":"2023-09-11T19:28:58.244013984Z",
      "uuid":"9F56537A-3C8C-463B-B8E6-175A891065E2",
      "ranking":2,
      "rating":2.2,
      "seed":1,
      "player_one_rank":1,
      "player_one_rating":1.5,
      "player_two_rank":2,
      "player_two_rating":2.5,
      "event_uuid":"422b3354-0f9c-431f-a8b9-f9e96931b15e",
      "tournament_uuid":"422b3354-0f9c-431f-a8b9-f9e96931b15e",
      "ratingGamesPlayed": "0",
      "attendee_event_id_1": "",
      "attendee_event_id_2": ""
    }
  ]
}

List Single Team

GET
/v1/data/teams/{uuid}
💡
This request requires “PB-API-TOKEN” from the platforms or “PB-USER-TOKEN” from the authenticated user.
Request
{
  "payload":{
    "player_one_uuid":"9F56537A-3C8C-463B-B8E6-175A891065E2",
    "player_two_uuid":"2023-09-11T19:28:58.244013984Z",
    "uuid":"9F56537A-3C8C-463B-B8E6-175A891065E2",
    "ranking":2,
    "rating":2.2,
    "seed":1,
    "player_one_rank":1,
    "player_one_rating":1.5,
    "player_two_rank":2,
    "player_two_rating":2.5,
    "event_uuid":"422b3354-0f9c-431f-a8b9-f9e96931b15e",
    "tournament_uuid":"422b3354-0f9c-431f-a8b9-f9e96931b15e",
    "ratingGamesPlayed": "0",
    "attendee_event_id_1": "",
    "attendee_event_id_2": ""
  }
}
Response
{
  "result":{
    "player_one_uuid":"9F56537A-3C8C-463B-B8E6-175A891065E2",
    "player_two_uuid":"2023-09-11T19:28:58.244013984Z",
    "uuid":"9F56537A-3C8C-463B-B8E6-175A891065E2",
    "ranking":2,
    "rating":2.2,
    "seed":1,
    "player_one_rank":1,
    "player_one_rating":1.5,
    "player_two_rank":2,
    "player_two_rating":2.5,
    "event_uuid":"422b3354-0f9c-431f-a8b9-f9e96931b15e",
    "tournament_uuid":"422b3354-0f9c-431f-a8b9-f9e96931b15e",
    "ratingGamesPlayed": "0",
    "attendee_event_id_1": "",
    "attendee_event_id_2": ""
  }
}

Update Team

PUT
/v1/teams/{uuid}
💡
This request requires “PB-API-TOKEN” from the platforms.
Request
{
  "payload":{
    "player_one_uuid":"9F56537A-3C8C-463B-B8E6-175A891065E2",
    "player_two_uuid":"2023-09-11T19:28:58.244013984Z",
    "uuid":"9F56537A-3C8C-463B-B8E6-175A891065E2",
    "ranking":2,
    "rating":2.2,
    "seed":1,
    "player_one_rank":1,
    "player_one_rating":1.5,
    "player_two_rank":2,
    "player_two_rating":2.5,
    "event_uuid":"422b3354-0f9c-431f-a8b9-f9e96931b15e",
    "tournament_uuid":"422b3354-0f9c-431f-a8b9-f9e96931b15e",
    "ratingGamesPlayed": "0",
    "attendee_event_id_1": "",
    "attendee_event_id_2": ""
  }
}
Response
{
   "payload":{
      "player_one_uuid":"9F56537A-3C8C-463B-B8E6-175A891065E2",
      "player_two_uuid":"2023-09-11T19:28:58.244013984Z",
      "uuid":"9F56537A-3C8C-463B-B8E6-175A891065E2",
      "ranking":2,
      "rating":2.2,
      "seed":1,
      "player_one_rank":1,
      "player_one_rating":1.5,
      "player_two_rank":2,
      "player_two_rating":2.5,
      "event_uuid":"422b3354-0f9c-431f-a8b9-f9e96931b15e",
      "tournament_uuid":"422b3354-0f9c-431f-a8b9-f9e96931b15e",
      "ratingGamesPlayed": "0",
      "attendee_event_id_1": "",
      "attendee_event_id_2": ""
   }
}

Upsert Team

POST
/v1/teams/upsert
💡
This request requires “PB-API-TOKEN” from the platforms.
Request
{
   "payload":{
      "player_one_uuid":"0080699F-EB7C-4E32-B5BE-A99555F1FE23",
      "player_two_uuid":"2023-09-11T19:28:58.244013984Z",
      "ranking":2,
      "rating":2.2,
      "seed":1,
      "player_one_rank":1,
      "player_one_rating":1.5,
      "player_two_rank":2,
      "player_two_rating":2.5,
      "event_uuid":"422b3354-0f9c-431f-a8b9-f9e96931b15e",
      "tournament_uuid":"422b3354-0f9c-431f-a8b9-f9e96931b15e",
      "uuid": "cdb64027-e684-42e6-9f79-ff8a22b6c06d",
      "ratingGamesPlayed": "0",
      "attendee_event_id_1": "",
      "attendee_event_id_2": ""
   }
}
Response
{
    "result": {
        "uuid": "cdb64027-e684-42e6-9f79-ff8a22b6c06d",
        "playerOneUuid": "0080699F-EB7C-4E32-B5BE-A99555F1FE23",
        "playerTwoUuid": "2023-09-11T19:28:58.244013984Z",
        "ranking": "2",
        "rating": 2.2,
        "seed": "1",
        "playerOneRank": "1",
        "playerOneRating": 1.5,
        "playerTwoRank": "2",
        "playerTwoRating": 2.5,
        "eventUuid": "422b3354-0f9c-431f-a8b9-f9e96931b15e",
        "tournamentUuid": "422b3354-0f9c-431f-a8b9-f9e96931b15e",
        "platformId": "1",
        "ratingGamesPlayed": 6,
        "attendee_event_id_1": "",
        "attendee_event_id_2": ""
    }
}