curl --request GET \
--url http://localhost:3000/v1/scheduling/insights{
"insights": {
"total_hours": 123,
"total_shifts": 123,
"average_hours_per_shift": 123,
"labor_cost": 123,
"scheduled_vs_actual": {
"scheduled": 123,
"actual": 123
},
"top_areas": [
{
"name": "<string>",
"hours": 123
}
],
"weekly_hours": [
{
"day": "<string>",
"hours": 123
}
]
},
"deputy_configured": true
}Get workforce insights and analytics from Deputy for the specified time period.
curl --request GET \
--url http://localhost:3000/v1/scheduling/insights{
"insights": {
"total_hours": 123,
"total_shifts": 123,
"average_hours_per_shift": 123,
"labor_cost": 123,
"scheduled_vs_actual": {
"scheduled": 123,
"actual": 123
},
"top_areas": [
{
"name": "<string>",
"hours": 123
}
],
"weekly_hours": [
{
"day": "<string>",
"hours": 123
}
]
},
"deputy_configured": true
}Time period for insights
week, month, year "week"