Where To Watch
Create Where To Watch
POST
/v1/admin/where_to_watch
💡
This request requires “PB-API-TOKEN” from the platforms.
Request
{
"payload":{
"tournament_uuid": "",
"where_to_watch_event_type_id": 1,
"channels": [{"id":1,"url":"test.com","displayOrder":1},{"id":2,"url":"test.com","displayOrder":2}],
"startDate":"2022-09-15T17:15:26.697Z",
"endDate":"2022-09-15T17:15:26.697Z",
"timezone_id": 1,
"tournament_title": "Kenan"
}
}
Response
{
"result": {
"uuid": "3ec9f081-4ccc-43df-8b51-2de8214b3edf",
"tournamentUuid": "",
"whereToWatchEventTypeId": "1",
"channels": [
{
"id": "1",
"title": "",
"displayOrder": 1,
"isActive": false,
"url": "test.com"
},
{
"id": "2",
"title": "",
"displayOrder": 2,
"isActive": false,
"url": "test.com"
}
],
"startDate": "2022-09-15T17:15:26.697Z",
"endDate": "2022-09-15T17:15:26.697Z",
"dateCreated": "2022-10-20T22:46:42.298039Z",
"dateArchived": "2023-09-11T19:28:58.244013984Z",
"dateUpdated": "2023-09-11T19:28:58.244013984Z",
"createdByFullName": "",
"updatedByFullName": "",
"archivedByFullName": "",
"timezoneId": "1",
"timezoneAbbreviation": "",
"eventTypeTitle": "",
"tournamentTitle": "Kenan"
}
}
???
Delete Where To Watch
DELETE
/v1/admin/where_to_watch/{uuid}
💡
This request requires “PB-API-TOKEN” from the platforms.
List Where To Watch
GET
/v1/data/where_to_watch
💡
This request requires “PB-API-TOKEN” from the platforms or “PB-USER-TOKEN” from the authenticated user.
Param | Description |
---|---|
page_size | Number value that represents number of returned results. |
current_page | Number value that represents offset of returned results. |
tournament_uuid | String value filter by tournament_uuid. |
is_public_view | Boolean value to display items with the correct time schedule to be displayed for public. |
Response
{
"totalRecords": "2",
"results": [
{
"uuid": "2a6952f7-8a62-4a84-8d2a-dbf9d94e9488",
"tournamentUuid": "1",
"whereToWatchEventTypeId": "1",
"channels": [
{
"id": "1",
"title": "Tennis Channel",
"displayOrder": 0,
"isActive": true,
"url": "test1.com"
}
],
"startDate": "2022-09-15T17:15:26.697Z",
"endDate": "2022-09-15T17:15:26.697Z",
"dateCreated": "2022-09-19T23:26:40.634Z",
"dateArchived": "2023-09-11T19:28:58.244013984Z",
"dateUpdated": "2023-09-11T19:28:58.244013984Z",
"createdByFullName": "",
"updatedByFullName": "",
"archivedByFullName": "",
"timezoneId": "1",
"timezoneAbbreviation": "AST",
"tournamentTitle": "Summer Sizzler 2022",
"eventTypeTitle": "M/W Singles"
},
..]}
List Single Where To Watch
GET
/v1/data/where_to_watch/{uuid}
💡
This request requires “PB-API-TOKEN” from the platforms or “PB-USER-TOKEN” from the authenticated user.
Response
{
"result": {
"uuid": "2a6952f7-8a62-4a84-8d2a-dbf9d94e9488",
"tournamentUuid": "1",
"whereToWatchEventTypeId": "1",
"channels": [
{
"id": "1",
"title": "Tennis Channel",
"displayOrder": 0,
"isActive": true,
"url": "test.com"
},
{
"id": "2",
"title": "Youtube",
"displayOrder": 0,
"isActive": true,
"url": "test.com"
}
],
"startDate": "2022-09-15T17:15:26.697Z",
"endDate": "2022-09-15T17:15:26.697Z",
"dateCreated": "2022-09-19T23:26:40.634Z",
"dateArchived": "2023-09-11T19:28:58.244013984Z",
"dateUpdated": "2023-09-11T19:28:58.244013984Z",
"createdByFullName": "",
"updatedByFullName": "",
"archivedByFullName": "",
"timezoneId": "1",
"timezoneAbbreviation": "AST",
"tournamentTitle": "Summer Sizzler 2022",
"eventTypeTitle": "M/W Singles"
}
}
Update Where To Watch
PUT
/v1/admin/where_to_watch/{uuid}
💡
This request requires “PB-API-TOKEN” from the platforms.
Request
{
"payload": {
"uuid": "3bb4e1c8-9b08-48e2-a3ae-aad0e8140a14",
"tournamentUuid": "1",
"whereToWatchEventTypeId": "1",
"channels": [
{
"id": "1",
"url": "test.com"
},
{
"id": "2",
"url": "test.com"
}
],
"startDate": "2022-09-15T17:15:26.697Z",
"endDate": "2022-09-15T17:15:26.697Z",
"timezoneId": 1
}
}
Response
{
"result": {
"uuid": "3bb4e1c8-9b08-48e2-a3ae-aad0e8140a14",
"tournamentUuid": "1",
"whereToWatchEventTypeId": "1",
"channels": [
{
"id": "1",
"title": "",
"displayOrder": 0,
"isActive": false,
"url": "test.com"
},
{
"id": "2",
"title": "",
"displayOrder": 0,
"isActive": false,
"url": "test.com"
}
],
"startDate": "2022-09-15T17:15:26.697Z",
"endDate": "2022-09-15T17:15:26.697Z",
"dateCreated": "2022-09-20T12:42:04.854349Z",
"dateArchived": "2023-09-11T19:28:58.244013984Z",
"dateUpdated": "2023-09-11T19:28:58.244013984Z",
"createdByFullName": "",
"updatedByFullName": "",
"archivedByFullName": "",
"timezoneId": 1,
"timezoneAbbreviation": "ACWST",
"tournamentTitle": "Piggleballl Fundraiser",
"eventTypeTitle": "W Singles",
}
}