Game Scheduler
Create a Court Location
POST
/v1/court_locations
💡
This request requires “PB-API-TOKEN” from the platforms or “PB-USER-TOKEN” from the authenticated user.
Request
{
"payload": {
"venue": "BiG Venue",
"name": "Name of Location",
"altName": "Altername",
"streetAddress": "Some St.21",
"countryId": 231,
"stateId": 2,
"city": "Tuzla",
"zip": "75000",
"phoneCountryId": 231,
"phoneAreaCode": "49",
"phone": "61136693",
"email": "kenan@thegate.dev",
"url": "pickleball.com",
"isLight": false,
"isFeeToPlay": true,
"isOpenPlay": false,
"parkingInformation": "None",
"isParkingFee": true,
"numberOfCourtsIndoor": 100,
"numberOfCourtsOutdoor": 10,
"description": "Some description",
"latitude": 10.0,
"longitude": 14.2,
"surfaceTypesIds": [1, 2],
"playAreaTypesIds": [1],
"lineTypesIds": [1],
"netTypesIds": [3],
"amenitiesIds": [5, 6, 7],
"hours": [
{
"cost": 14.5,
"day_of_week": 2,
"description": "Description",
"from_time": "10:00AM",
"to_time": "11:00PM",
"is_open_play": false
},
{
"cost": 22.5,
"day_of_week": 3,
"description": "Description",
"from_time": "12:00AM",
"to_time": "12:00PM",
"is_open_play": true
}
]
}
}
Response
{
"result": {
"uuid": "ae818700-663e-47a3-9a0f-47ab9f64f0e5",
"venue": "BiG Venue",
"name": "Name of Location",
"altName": "Altername",
"streetAddress": "Some St.21",
"countryId": "231",
"stateId": "2",
"city": "Tuzla",
"zip": "75000",
"phoneCountryId": "231",
"phoneAreaCode": "49",
"phone": "61136693",
"email": "kenan@thegate.dev",
"url": "pickleball.com",
"isLight": false,
"isFeeToPlay": true,
"isOpenPlay": false,
"parkingInformation": "None",
"isParkingFee": true,
"numberOfCourtsIndoor": "100",
"numberOfCourtsOutdoor": "10",
"description": "Some description",
"latitude": 15.9128999710083,
"longitude": 79.739990234375,
"dateArchived": null,
"dateApproved": null,
"surfaceTypesIds": [
"1",
"2"
],
"playAreaTypesIds": [
"1"
],
"lineTypesIds": [
"1"
],
"netTypesIds": [
"3"
],
"amenitiesIds": [
"5",
"6",
"7"
],
"hours": [
{
"courtLocationUuid": "ae818700-663e-47a3-9a0f-47ab9f64f0e5",
"dayOfWeek": "2",
"fromTime": "10:00AM",
"toTime": "11:00PM",
"description": "Description",
"cost": 14.5,
"isOpenPlay": false
},
{
"courtLocationUuid": "ae818700-663e-47a3-9a0f-47ab9f64f0e5",
"dayOfWeek": "3",
"fromTime": "12:00AM",
"toTime": "12:00PM",
"description": "Description",
"cost": 22.5,
"isOpenPlay": true
}
],
"isFavorite": false,
"lighting": false,
"facilityCategory": "UNDEFINED_FACILITY_ENUM",
"searchDistance": 0,
"state": "",
"country": ""
}
}
Delete a Court Location
DELETE
/v1/admin/court_locations/{uuid}
💡
This request requires “PB-API-TOKEN” from the platforms.
Request
Empty
Response
200 OK If court location is successfully removed
List Court Locations
GET
/v1/data/court_locations
💡
This request requires “PB-API-TOKEN” from the platforms or “PB-USER-TOKEN” from the authenticated user.
Query name | Required | Description |
---|---|---|
page_size | No | Number value that represents number of returned results. |
current_page | No | Number value that represents offset of returned results. |
latitude | No | Double value filter by range must be in range -90 to 90. |
longitude | No | Double value filter by range must be in range -180 to 180. |
distance | No | Integer value for filter by range. |
search | No | Filter by court location or court city name. |
unapproved | No | Boolean value that represents Court Location search which is combined only if the user is an admin, so that only unapproved Locations are shown to him. |
favorite | No | Bool value that returns favorite court locations. |
Request
Empty
Response
{
"totalRecords": "1",
"results": [
{
"uuid": "a3b4c136-342c-41de-be66-7d3259c87e48",
"venue": "BiG Venue",
"name": "Name of Location",
"altName": "Altername",
"streetAddress": "Some St.21",
"countryId": "231",
"stateId": "2",
"city": "Tuzla",
"zip": "75000",
"phoneCountryId": "231",
"phoneAreaCode": "49",
"phone": "61136693",
"email": "kenan@thegate.dev",
"url": "pickleball.com",
"isLight": false,
"isFeeToPlay": true,
"isOpenPlay": false,
"parkingInformation": "None",
"isParkingFee": true,
"numberOfCourtsIndoor": "100",
"numberOfCourtsOutdoor": "10",
"description": "Some description",
"latitude": 10,
"longitude": 14.2,
"dateArchived": "2023-09-11T19:28:58.244013984Z",
"dateApproved": "2022-11-22T20:49:35Z",
"surfaceTypesIds": ["1", "2"],
"playAreaTypesIds": ["1"],
"lineTypesIds": ["1"],
"netTypesIds": ["3"],
"amenitiesIds": ["5", "6", "7"],
"hours": [
{
"courtLocationUuid": "a3b4c136-342c-41de-be66-7d3259c87e48",
"dayOfWeek": "2",
"fromTime": "10:00AM",
"toTime": "11:00PM",
"description": "Description",
"cost": 14.5,
"isOpenPlay": false
},
{
"courtLocationUuid": "a3b4c136-342c-41de-be66-7d3259c87e48",
"dayOfWeek": "3",
"fromTime": "12:00AM",
"toTime": "12:00PM",
"description": "Description",
"cost": 22.5,
"isOpenPlay": true
}
]
}
]
}
List a Single Court Location
GET
/v1/data/court_locations/{uuid}
💡
This request requires “PB-API-TOKEN” from the platforms or “PB-USER-TOKEN” from the authenticated user.
Request
Empty
Response
{
"result": {
"uuid": "a3b4c136-342c-41de-be66-7d3259c87e48",
"venue": "BiG Venue",
"name": "Name of Location",
"altName": "Altername",
"streetAddress": "Some St.21",
"countryId": "231",
"stateId": "2",
"city": "Tuzla",
"zip": "75000",
"phoneCountryId": "231",
"phoneAreaCode": "49",
"phone": "61136693",
"email": "kenan@thegate.dev",
"url": "pickleball.com",
"isLight": false,
"isFeeToPlay": true,
"isOpenPlay": false,
"parkingInformation": "None",
"isParkingFee": true,
"numberOfCourtsIndoor": "100",
"numberOfCourtsOutdoor": "10",
"description": "Some description",
"latitude": 10,
"longitude": 14.2,
"dateArchived": "2023-09-11T19:28:58.244013984Z",
"dateApproved": "2022-11-22T20:49:35Z",
"surfaceTypesIds": ["1", "2"],
"playAreaTypesIds": ["1"],
"lineTypesIds": ["1"],
"netTypesIds": ["3"],
"amenitiesIds": ["5", "6", "7"],
"hours": [
{
"courtLocationUuid": "a3b4c136-342c-41de-be66-7d3259c87e48",
"dayOfWeek": "2",
"fromTime": "10:00AM",
"toTime": "11:00PM",
"description": "Description",
"cost": 14.5,
"isOpenPlay": false
},
{
"courtLocationUuid": "a3b4c136-342c-41de-be66-7d3259c87e48",
"dayOfWeek": "3",
"fromTime": "12:00AM",
"toTime": "12:00PM",
"description": "Description",
"cost": 22.5,
"isOpenPlay": true
}
]
}
}
Update a Court Location
PUT
/v1/admin/court_locations/{uuid}
💡
This request requires “PB-API-TOKEN” from the platforms.
Request
{
"payload": {
"uuid": "a3b4c136-342c-41de-be66-7d3259c87e48",
"venue": "BiG Venue",
"name": "Name of Location",
"altName": "Altername",
"streetAddress": "Some St.21",
"countryId": 231,
"stateId": 2,
"city": "Tuzla",
"zip": "75000",
"phoneCountryId": 231,
"phoneAreaCode": "49",
"phone": "61136693",
"email": "kenan@thegate.dev",
"url": "pickleball.com",
"isLight": false,
"isFeeToPlay": true,
"isOpenPlay": false,
"parkingInformation": "None",
"isParkingFee": true,
"numberOfCourtsIndoor": 100,
"numberOfCourtsOutdoor": 10,
"description": "Some description",
"latitude": 10.0,
"longitude": 14.2,
"surfaceTypesIds": [1, 2],
"playAreaTypesIds": [1],
"lineTypesIds": [1],
"netTypesIds": [3],
"amenitiesIds": [5, 6, 7],
"hours": [
{
"cost": 14.5,
"day_of_week": 2,
"description": "Description",
"from_time": "10:00AM",
"to_time": "11:00PM",
"is_open_play": false
},
{
"cost": 22.5,
"day_of_week": 3,
"description": "Description",
"from_time": "12:00AM",
"to_time": "12:00PM",
"is_open_play": true
}
],
"dateArchived": "2023-09-11T19:28:58.244013984Z",
"dateApproved": "2022-11-22T20:49:35Z"
}
}
Response
{
"result": {
"uuid": "33addd41-f13a-4440-884b-6b99b3259ed1",
"venue": "BiG Venue",
"name": "Name of Location",
"altName": "Altername",
"streetAddress": "Some St.21",
"countryId": "231",
"stateId": "2",
"city": "Tuzla",
"zip": "75000",
"phoneCountryId": "231",
"phoneAreaCode": "49",
"phone": "61136693",
"email": "kenan@thegate.dev",
"url": "pickleball.com",
"isLight": false,
"isFeeToPlay": true,
"isOpenPlay": false,
"parkingInformation": "None",
"isParkingFee": true,
"numberOfCourtsIndoor": "100",
"numberOfCourtsOutdoor": "10",
"description": "Some description",
"latitude": 10,
"longitude": 14.2,
"dateArchived": "2023-09-11T19:28:58.244013984Z",
"dateApproved": "2022-11-22T20:49:35Z",
"surfaceTypesIds": ["1", "2"],
"playAreaTypesIds": ["1"],
"lineTypesIds": ["1"],
"netTypesIds": ["3"],
"amenitiesIds": ["5", "6", "7"],
"hours": [
{
"courtLocationUuid": "33addd41-f13a-4440-884b-6b99b3259ed1",
"dayOfWeek": "2",
"fromTime": "10:00AM",
"toTime": "11:00PM",
"description": "Description",
"cost": 14.5,
"isOpenPlay": false
},
{
"courtLocationUuid": "33addd41-f13a-4440-884b-6b99b3259ed1",
"dayOfWeek": "3",
"fromTime": "12:00AM",
"toTime": "12:00PM",
"description": "Description",
"cost": 22.5,
"isOpenPlay": true
}
]
}
}
Game Scheduler Lookup For Cities
GET
/v1/data/court_locations/lookup/cities
💡
This request requires “PB-API-TOKEN” from the platforms or “PB-USER-TOKEN” from the authenticated user.
Request
Empty
Response
{
"results": [
{
"city": "Seattle",
"count": "15"
},
{
"city": "San Francisco",
"count": "14"
},
{
"city": "Washington",
"count": "13"
},
{
"city": "Houston ",
"count": "12"
},
{
"city": "Dallas",
"count": "11"
},
{
"city": "Phoenix",
"count": "9"
},
{
"city": "Weston",
"count": "7"
},
{
"city": "Tampa ",
"count": "6"
},
{
"city": "Atlanta",
"count": "5"
},
{
"city": "Oakland",
"count": "5"
},
{
"city": "Los Angeles",
"count": "5"
},
{
"city": "San Jose",
"count": "5"
},
{
"city": "Atlanta ",
"count": "4"
},
{
"city": "Minneapolis",
"count": "4"
},
{
"city": "San Jose ",
"count": "3"
},
{
"city": "Houston",
"count": "3"
},
{
"city": "Grand Prairie",
"count": "3"
},
{
"city": "Beverly Hills",
"count": "3"
},
{
"city": "Fairbanks",
"count": "3"
},
{
"city": "Piedmont",
"count": "3"
},
{
"city": "Pittsburgh",
"count": "3"
},
{
"city": "Arlington",
"count": "3"
},
{
"city": "Detroit",
"count": "3"
},
{
"city": "Sandy Springs ",
"count": "2"
},
{
"city": "Hinsdale",
"count": "2"
},
{
"city": "Wasilla",
"count": "2"
},
{
"city": "Royal Oak",
"count": "2"
},
{
"city": "Glendale",
"count": "2"
},
{
"city": "Saint Petersburg ",
"count": "2"
},
{
"city": "Airmont",
"count": "2"
},
{
"city": "Washington ",
"count": "2"
},
{
"city": "Berkeley",
"count": "2"
},
{
"city": "Fort Worth",
"count": "2"
},
{
"city": "Plantation",
"count": "2"
},
{
"city": "Monterey Park",
"count": "2"
},
{
"city": "Rockwall",
"count": "2"
},
{
"city": "Alameda",
"count": "2"
},
{
"city": "Central Park West ",
"count": "1"
},
{
"city": "Congers ",
"count": "1"
},
{
"city": "Sun City",
"count": "1"
},
{
"city": "Perkasie",
"count": "1"
},
{
"city": "Canonsburg",
"count": "1"
},
{
"city": "Berkley",
"count": "1"
},
{
"city": "Bellaire ",
"count": "1"
},
{
"city": "Valley Cottage",
"count": "1"
},
{
"city": "Brookline",
"count": "1"
},
{
"city": "Sterling Heights",
"count": "1"
},
{
"city": "Daly City",
"count": "1"
},
{
"city": "Needham Heights",
"count": "1"
},
{
"city": "Quincy",
"count": "1"
},
{
"city": " Lafayette Hill",
"count": "1"
},
{
"city": "Glenview",
"count": "1"
},
{
"city": "Irving",
"count": "1"
},
{
"city": "Central Park ",
"count": "1"
},
{
"city": "Jamaica Plain",
"count": "1"
},
{
"city": "Lower Manhattan",
"count": "1"
},
{
"city": "Pelham",
"count": "1"
},
{
"city": "Monroeville",
"count": "1"
},
{
"city": "Fort Hill",
"count": "1"
},
{
"city": "New York ",
"count": "1"
},
{
"city": "Saratoga",
"count": "1"
},
{
"city": "St. Charles",
"count": "1"
},
{
"city": "Mableton",
"count": "1"
},
{
"city": "Orinda",
"count": "1"
},
{
"city": "Orangetown ",
"count": "1"
},
{
"city": "Peoria",
"count": "1"
},
{
"city": "West Hollywood",
"count": "1"
},
{
"city": "Glen Head ",
"count": "1"
},
{
"city": "Oldsmar",
"count": "1"
},
{
"city": "Cambridge",
"count": "1"
},
{
"city": "Vista",
"count": "1"
},
{
"city": "Woburn",
"count": "1"
},
{
"city": "Avondale",
"count": "1"
},
{
"city": "Northbrook",
"count": "1"
},
{
"city": "Carlsbad",
"count": "1"
},
{
"city": "West Chester",
"count": "1"
},
{
"city": "Munster",
"count": "1"
},
{
"city": "Ipsum ipsa ea quia ",
"count": "1"
},
{
"city": "Library",
"count": "1"
},
{
"city": "San Leandro",
"count": "1"
},
{
"city": "Boston ",
"count": "1"
},
{
"city": "Lake Orion",
"count": "1"
},
{
"city": "Mundelein",
"count": "1"
},
{
"city": "Brewster",
"count": "1"
},
{
"city": "Niles",
"count": "1"
},
{
"city": "Farmington Hills",
"count": "1"
},
{
"city": "Inglewood",
"count": "1"
},
{
"city": "Newton Center",
"count": "1"
},
{
"city": "Sunnyvale ",
"count": "1"
},
{
"city": "Langhorne",
"count": "1"
},
{
"city": "Yuba City",
"count": "1"
},
{
"city": "South Pasadena",
"count": "1"
},
{
"city": "Gilroy",
"count": "1"
},
{
"city": "Richmond",
"count": "1"
},
{
"city": "Paradise Valley",
"count": "1"
},
{
"city": "Montebello",
"count": "1"
},
{
"city": "Hershey",
"count": "1"
},
{
"city": "Hopkins",
"count": "1"
},
{
"city": " Santa Clara",
"count": "1"
},
{
"city": "Allentown",
"count": "1"
},
{
"city": "Wallkill",
"count": "1"
},
{
"city": "Newtonville",
"count": "1"
},
{
"city": "Sandwich ",
"count": "1"
},
{
"city": "Rochester",
"count": "1"
},
{
"city": "Winthrop",
"count": "1"
},
{
"city": "Naperville",
"count": "1"
},
{
"city": "Sarasota",
"count": "1"
},
{
"city": "Peachtree Corners ",
"count": "1"
},
{
"city": "South Dennis ",
"count": "1"
},
{
"city": "Stockbridge",
"count": "1"
},
{
"city": "South Boston ",
"count": "1"
},
{
"city": "Harper Woods",
"count": "1"
},
{
"city": "Utica",
"count": "1"
},
{
"city": "Broadway ",
"count": "1"
},
{
"city": "Boca Raton",
"count": "1"
},
{
"city": "Monsey",
"count": "1"
},
{
"city": "Troy",
"count": "1"
},
{
"city": "Grapevine",
"count": "1"
},
{
"city": "Bloomington",
"count": "1"
},
{
"city": "Fremont",
"count": "1"
},
{
"city": "Northfield",
"count": "1"
},
{
"city": "Arlington Heights",
"count": "1"
},
{
"city": "Santa Cruz",
"count": "1"
},
{
"city": "Champaign",
"count": "1"
},
{
"city": "Chambersburg",
"count": "1"
},
{
"city": "Aptos",
"count": "1"
},
{
"city": "Powder Springs",
"count": "1"
},
{
"city": "Salem",
"count": "1"
},
{
"city": "Coppell",
"count": "1"
},
{
"city": "Finleyville",
"count": "1"
},
{
"city": "Evanston",
"count": "1"
},
{
"city": "Richardson",
"count": "1"
},
{
"city": "Denver",
"count": "1"
},
{
"city": "Livonia",
"count": "1"
},
{
"city": "Buffalo Grove",
"count": "1"
},
{
"city": " Phoenix",
"count": "1"
},
{
"city": "Oak Park",
"count": "1"
}
]
}