Get utilization resume of all booths in Facility
Returns a list of objects with the summed utilization for each mode for all booths associated to the given Facility.
Path parameters
-
id
string Required id of the facility
GET
/api/facilities/{id}/utilization
curl \
--request GET 'http://localhost:4000/api/facilities/{id}/utilization?from=string&to=string' \
--header "Authorization: $API_KEY"
Response examples (200)
{
"mode": "Spray Mode",
"duration": 5.0,
"percentage": 55.0
}
Response examples (200)
{
"mode": "Spray Mode",
"duration": 5.0,
"percentage": 55.0
}
Response examples (400)
{
"error": "Error Reason"
}
Response examples (400)
{
"error": "Error Reason"
}
Response examples (401)
{
"error": "Error Reason"
}
Response examples (401)
{
"error": "Error Reason"
}