Locations
Create Location
POST
/v1/locations
💡
This request requires “PB-API-TOKEN” from the platforms.
Request
{
"payload":{
"uuid": "a9891a30-ca43-4386-81c9-5dc7a40d4178",
"uuidCopiedFrom": "",
"moduleFor": "",
"moduleId": "",
"surfaceTypeId": 0,
"playAreaTypeId": 0,
"netTypeId": 0,
"isPrimary": false,
"venue": "",
"altName": "",
"streetAddress": "",
"countryId": 0,
"stateId": 0,
"city": "",
"zip": "",
"ballUsed": "",
"ballUrl": "",
"parkingInformation": "",
"isParkingFee": false,
"numberOfCourts": 0,
"latitude": "",
"longitude": "",
"dateCreated": "2024-01-03T22:47:18.968732Z",
"createdByFullName": "",
"dateUpdated": "2024-01-03T22:47:18.968732Z",
"updatedByFullName": "",
"dateDisabled": "2024-01-03T22:47:18.968732Z",
"disabledByFullName": "",
"usePrintSpooler": false,
"locationIdInt": 10,
"geniusSportsCourts": false
}
}
Response
{
"result": {
"uuid": "a9891a30-ca43-4386-81c9-5dc7a40d4178",
"uuidCopiedFrom": "",
"moduleFor": "",
"moduleId": "",
"surfaceTypeId": 0,
"playAreaTypeId": 0,
"netTypeId": 0,
"isPrimary": false,
"venue": "",
"altName": "",
"streetAddress": "",
"countryId": 0,
"stateId": 0,
"city": "",
"zip": "",
"ballUsed": "",
"ballUrl": "",
"parkingInformation": "",
"isParkingFee": false,
"numberOfCourts": 0,
"latitude": "",
"longitude": "",
"dateCreated": "2024-01-03T22:47:18.968732Z",
"createdByFullName": "",
"dateUpdated": "2024-01-03T22:47:18.968732Z",
"updatedByFullName": "",
"dateDisabled": "2024-01-03T22:47:18.968732Z",
"disabledByFullName": "",
"usePrintSpooler": false,
"locationIdInt": 10,
"geniusSportsCourts": false
}
}
Delete Location
DELETE
/v1/locations/{uuid}
💡
This request requires “PB-API-TOKEN” from the platforms.
Request
Empty
Response
Empty
List Locations
GET
/v1/data/locations
💡
This request requires “PB-API-TOKEN” from the platforms.
Request
Empty
Query parameters
Name | Description |
---|---|
page_size | Number value that represents number of returned results |
current_page | Number value that represents offset of returned results |
uuid | Uuid of the location |
module_id | Tournament id |
tournament_code | Tournament code |
Response
{
"total_records": "1",
"results": [
{
"uuid": "a9891a30-ca43-4386-81c9-5dc7a40d4178",
"uuidCopiedFrom": "",
"moduleFor": "",
"moduleId": "",
"surfaceTypeId": 0,
"playAreaTypeId": 0,
"netTypeId": 0,
"isPrimary": false,
"venue": "",
"altName": "",
"streetAddress": "",
"countryId": 0,
"stateId": 0,
"city": "",
"zip": "",
"ballUsed": "",
"ballUrl": "",
"parkingInformation": "",
"isParkingFee": false,
"numberOfCourts": 0,
"latitude": "",
"longitude": "",
"dateCreated": "2024-01-03T22:47:18.968732Z",
"createdByFullName": "",
"dateUpdated": "2024-01-03T22:47:18.968732Z",
"updatedByFullName": "",
"dateDisabled": "2024-01-03T22:47:18.968732Z",
"disabledByFullName": "",
"usePrintSpooler": false,
"locationIdInt": 10,
"geniusSportsCourts": false
}
]
}
List Single Location
GET
/v1/data/locations/{uuid}
💡
This request requires “PB-API-TOKEN” from the platforms or “PB-USER-TOKEN” from the authenticated user.
Request
Empty
Response
{
"uuid": "a9891a30-ca43-4386-81c9-5dc7a40d4178",
"uuidCopiedFrom": "",
"moduleFor": "",
"moduleId": "",
"surfaceTypeId": 0,
"playAreaTypeId": 0,
"netTypeId": 0,
"isPrimary": false,
"venue": "",
"altName": "",
"streetAddress": "",
"countryId": 0,
"stateId": 0,
"city": "",
"zip": "",
"ballUsed": "",
"ballUrl": "",
"parkingInformation": "",
"isParkingFee": false,
"numberOfCourts": 0,
"latitude": "",
"longitude": "",
"dateCreated": "2024-01-03T22:47:18.968732Z",
"createdByFullName": "",
"dateUpdated": "2024-01-03T22:47:18.968732Z",
"updatedByFullName": "",
"dateDisabled": "2024-01-03T22:47:18.968732Z",
"disabledByFullName": "",
"usePrintSpooler": false,
"locationIdInt": 10,
"geniusSportsCourts": false
}
Update Location
PUT
/v1/locations/{uuid}
💡
This request requires “PB-API-TOKEN” from the platforms.
Request
{
"payload": {
"uuid": "a9891a30-ca43-4386-81c9-5dc7a40d4178",
"uuidCopiedFrom": "",
"moduleFor": "",
"moduleId": "",
"surfaceTypeId": 0,
"playAreaTypeId": 0,
"netTypeId": 0,
"isPrimary": false,
"venue": "",
"altName": "",
"streetAddress": "",
"countryId": 0,
"stateId": 0,
"city": "",
"zip": "",
"ballUsed": "",
"ballUrl": "",
"parkingInformation": "",
"isParkingFee": false,
"numberOfCourts": 0,
"latitude": "",
"longitude": "",
"dateCreated": "2024-01-03T22:47:18.968732Z",
"createdByFullName": "",
"dateUpdated": "2024-01-03T22:47:18.968732Z",
"updatedByFullName": "",
"dateDisabled": "2024-01-03T22:47:18.968732Z",
"disabledByFullName": "",
"usePrintSpooler": false,
"locationIdInt": 10,
"geniusSportsCourts": false
}
}
Response
{
"result": {
"uuid": "a9891a30-ca43-4386-81c9-5dc7a40d4178",
"uuidCopiedFrom": "",
"moduleFor": "",
"moduleId": "",
"surfaceTypeId": 0,
"playAreaTypeId": 0,
"netTypeId": 0,
"isPrimary": false,
"venue": "",
"altName": "",
"streetAddress": "",
"countryId": 0,
"stateId": 0,
"city": "",
"zip": "",
"ballUsed": "",
"ballUrl": "",
"parkingInformation": "",
"isParkingFee": false,
"numberOfCourts": 0,
"latitude": "",
"longitude": "",
"dateCreated": "2024-01-03T22:47:18.968732Z",
"createdByFullName": "",
"dateUpdated": "2024-01-03T22:47:18.968732Z",
"updatedByFullName": "",
"dateDisabled": "2024-01-03T22:47:18.968732Z",
"disabledByFullName": "",
"usePrintSpooler": false,
"locationIdInt": 10,
"geniusSportsCourts": false
}
}
Upsert Location
POST
/v1/locations/upsert
💡
This request requires “PB-API-TOKEN” from the platforms.
Request
{
"payload": {
"uuid": "a9891a30-ca43-4386-81c9-5dc7a40d4178",
"uuidCopiedFrom": "",
"moduleFor": "",
"moduleId": "",
"surfaceTypeId": 0,
"playAreaTypeId": 0,
"netTypeId": 0,
"isPrimary": false,
"venue": "",
"altName": "",
"streetAddress": "",
"countryId": 0,
"stateId": 0,
"city": "",
"zip": "",
"ballUsed": "",
"ballUrl": "",
"parkingInformation": "",
"isParkingFee": false,
"numberOfCourts": 0,
"latitude": "",
"longitude": "",
"dateCreated": "2024-01-03T22:47:18.968732Z",
"createdByFullName": "",
"dateUpdated": "2024-01-03T22:47:18.968732Z",
"updatedByFullName": "",
"dateDisabled": "2024-01-03T22:47:18.968732Z",
"disabledByFullName": "",
"usePrintSpooler": false,
"locationIdInt": 10,
"geniusSportsCourts": false
}
}
Response
{
"result": {
"uuid": "a9891a30-ca43-4386-81c9-5dc7a40d4178",
"uuidCopiedFrom": "",
"moduleFor": "",
"moduleId": "",
"surfaceTypeId": 0,
"playAreaTypeId": 0,
"netTypeId": 0,
"isPrimary": false,
"venue": "",
"altName": "",
"streetAddress": "",
"countryId": 0,
"stateId": 0,
"city": "",
"zip": "",
"ballUsed": "",
"ballUrl": "",
"parkingInformation": "",
"isParkingFee": false,
"numberOfCourts": 0,
"latitude": "",
"longitude": "",
"dateCreated": "2024-01-03T22:47:18.968732Z",
"createdByFullName": "",
"dateUpdated": "2024-01-03T22:47:18.968732Z",
"updatedByFullName": "",
"dateDisabled": "2024-01-03T22:47:18.968732Z",
"disabledByFullName": "",
"usePrintSpooler": false,
"locationIdInt": 10,
"geniusSportsCourts": false
}
}