Sites#
The Sites API provides methods to list sites within a portal.
Attributes#
A site has the following attributes:
Attribute |
Value Type |
Description |
|---|---|---|
|
string |
The identifying name of this site |
|
integer |
The number of users of this site |
|
integer |
The number of logical devices associated with this site |
|
date-time |
The time that this site was created |
|
date-time |
the last time that this site was updated |
|
floating point |
The latitude of the site, in degrees |
|
floating point |
The longitude of the site, in degrees |
|
string |
The Timezone of the site, in tz database format |
|
floating point |
The time offset from UTC for the site |
|
string |
The physical, geographical address of the site |
|
string |
A field for arbitrary notes about this site |
|
string |
The primary email contact for this site |
|
string |
The name of the primary contact for this site |
|
string |
The contact telephone number for the primary contact for this site |
|
string |
The email contact of the technical manager for this site |
|
string |
The email contact of the person responsible for dealing with subscriptions for this site |
|
string |
The email contact of the person responsible for dealing with commercial/billing matters for this site |
|
integer |
The number of devices reporting as online |
|
integer |
The number of devices reporting as offline |
|
integer |
The number of logical devices, where the real devices were removed from the SixEye system or moved to another logical device |
|
integer |
The number of devices that have firmware upgrades available |
Methods#
Get a List of Sites#
This call retrieves an array of information about all sites.
GET /projects
Returns a JSON object with an array of sites
Example response
{
"data": [
{
"id": "0da10710-4240-4f5c-81a7-cb8bca666d3b",
"type": "projects",
"attributes": {
"name": "TomSite",
"usersCount": 2,
"logicalDevicesCount": 5,
"createdAt": "2023-03-13T10:30:47.460+00:00",
"updatedAt": "2023-03-13T10:33:29.670+00:00",
"latitude": "51.512769",
"longitude": "-0.311615",
"timezoneId": "Europe/London",
"offset": 0.0,
"geoAddress": "Ibis Styles Hotel, 32-38, Uxbridge Road, London Borough of Ealing, London, Greater London, England, W5 2BS, United Kingdom",
"address": null,
"notes": null,
"state": "active",
"points": 12,
"subscriptionPlanCode": "A",
"projectedSubscriptionPlanCode": "A+",
"dateBlockingStartTime": null,
"primaryContactEmail": null,
"primaryContactPerson": null,
"primaryContactPhone": null,
"technicalContactEmail": null,
"subscriptionContactEmail": null,
"commercialContactEmail": null,
"projectSuitesCount": 0,
"trialPeriodDays": null,
"renewalDate": "2025-09-12T23:59:59Z",
"projectedRenewalDate": "2024-09-12T23:59:59Z",
"onlineDevices": 5,
"offlineDevices": 0,
"unassociatedDevices": 0,
"devicesForUpgrade": 0
}
}
]
}
Get a Single Site#
GET /projects/{{project_uuid}}
Returns a JSON object with a singular data item for the site, or a 404 error if the project (site) UUID is not recognized.
Example response
{
"data": {
"id": "0da10710-4240-4f5c-81a7-cb8bca666d3b",
"type": "projects",
"attributes": {
"name": "TomSite",
"usersCount": 2,
"logicalDevicesCount": 5,
"createdAt": "2023-03-13T10:30:47.460+00:00",
"updatedAt": "2023-03-13T10:33:29.670+00:00",
"latitude": "51.512769",
"longitude": "-0.311615",
"timezoneId": "Europe/London",
"offset": 0.0,
"geoAddress": "Ibis Styles Hotel, 32-38, Uxbridge Road, London Borough of Ealing, London, Greater London, England, W5 2BS, United Kingdom",
"address": null,
"notes": null,
"state": "active",
"points": 12,
"subscriptionPlanCode": "A",
"projectedSubscriptionPlanCode": "A+",
"dateBlockingStartTime": null,
"primaryContactEmail": null,
"primaryContactPerson": null,
"primaryContactPhone": null,
"technicalContactEmail": null,
"subscriptionContactEmail": null,
"commercialContactEmail": null,
"projectSuitesCount": 0,
"trialPeriodDays": null,
"renewalDate": "2025-09-12T23:59:59Z",
"projectedRenewalDate": "2024-09-12T23:59:59Z",
"onlineDevices": 5,
"offlineDevices": 0,
"unassociatedDevices": 0,
"devicesForUpgrade": 0
}
}
}