User
Favorites

Favorites

Create a Favorite

POST
/v1/users/{uuid}/favorites
💡
This request requires “PB-API-TOKEN” from the platforms or “PB-USER-TOKEN” from the authenticated user.

This API uses lookup_module_types table as module_for argument, current available module types are: Tournaments, Clinics, Leagues and Clubs.

Request
{
  "module_for": "Leagues",
  "module_uuid": "1234-abcd-1151"
}
Response
Empty

Delete a Favorite

DELETE
/v1/users/{uuid}/favorites/{favorite_uuid}
💡
This request requires “PB-API-TOKEN” from the platforms or “PB-USER-TOKEN” from the authenticated user.

This API uses lookup_module_types table as module_for argument, current available module types are: Tournaments, Clinics, Leagues and Clubs.

Request
Empty 
Response
Empty

List Favorites

GET
/v1/users/{uuid}/favorites
💡
This request requires “PB-API-TOKEN” from the platforms or “PB-USER-TOKEN” from the authenticated user.

This API uses lookup_module_types table as module_for argument, current available module types are: Tournaments, Clinics, Leagues and Clubs.

Request
Empty 
Response
{
  "totalRecords": "4",
  "results": [
    {
      "uuid": "b8152157-cced-42e5-8107-33b64ed1f355",
      "moduleFor": "Tournaments",
      "moduleUuid": "1234-5678-9000",
      "userUuid": "BD49B56C-EAC9-4653-8A71-59BD961BABBE"
    },
    {
      "uuid": "850fa34e-04ef-4b03-892b-912fed781b82",
      "moduleFor": "Clubs",
      "moduleUuid": "1234-5678-1111",
      "userUuid": "BD49B56C-EAC9-4653-8A71-59BD961BABBE"
    },
    {
      "uuid": "4b6805df-d324-4aab-bb7a-79cdd8d996ce",
      "moduleFor": "Leagues",
      "moduleUuid": "1234-5678-1111",
      "userUuid": "BD49B56C-EAC9-4653-8A71-59BD961BABBE"
    },
    {
      "uuid": "12dd4377-e181-4568-a900-f7b5682b5404",
      "moduleFor": "Leagues",
      "moduleUuid": "1234-abcd-1151",
      "userUuid": "BD49B56C-EAC9-4653-8A71-59BD961BABBE"
    }
  ]
}