1. Home
  2. User Guides
  3. RESTful API Documentation
  4. [WIP] Staff Hourly Area Level Data Import API

[WIP] Staff Hourly Area Level Data Import API

Contents

 

Description Calling this endpoint by providing JSON payload of list of staff hourly area level data to import data.
Endpoint {DataManagerAPI}/action/ImportAreaStaffHour
Method POST
Request Headers AToken (Guide on how to obtain AToken here)
Body - JSON Example {
    "AreaStaffHourList" : [
        {
            "AreaId" : 1001,
            "ValueDateTime" : "2022-08-25 14:00:00",
            "StaffCount" : 9
        },
        {
            "AreaId" : 1001,
            "ValueDateTime" : "2022-08-25 15:00:00",
            "StaffCount" : 4
        },
        {
            "AreaId" : 1002,
            "ValueDateTime" : "2022-08-25 14:00:00",
            "StaffCount" : 6
        },
        {
            "AreaId" : 1002,
            "ValueDateTime" : "2022-08-25 15:00:00",
            "StaffCount" : 7
        }
    ]
}
Body Description
  1. 'AreaId' is the unique key for identifying specific branch. You may obtain list of Area and relevant info from Areas API, kindly refer guide here to call Areas API
  2. 'ValueDateTime' should be the datetime (in UTC +0 timezone) of the counting data value
  3. 'StaffCount' is the value of staff in specified area at given datetime (in UTC +0 timezone)
Response - JSON Example {
    "Status" : 200,
    "Error" : "",
    "Message" : "",
    "Data" : ""
}
Remark
{DataManagerAPI}: https://data.footfallcam.com/
(if you're using on-premise solution, please consult FootfallCam Support on the host address)
Updated on August 5, 2022