ProRoster - Simulate attendance time of employees from plan

API Url

Used to simulate the attendance time of employees from a plan

GET
http://localhost:16010/ProMarkREST/web/ProRoster/plans/{planId}/attendance-simulation

Permissions: user

Path parameters

FieldTypeDescription
planIdNumber

The plan Id.

Query parameters

FieldTypeDescription
filteIdoptionalNumber

The id of a filter

filterNameoptionalString

The name of a filter

fromDateDatetime

The start date for the simulation interval

fromTimeoptionalDatetime

The start time for the simulation interval as seconds since midnigth

groupByoptionalNumber

0 - no grouping, 1 - department, 2 - group

toDateDatetime

The end date for the simulation interval

toTimeoptionalDatetime

The end time for the simulation interval as seconds since midnigth

Success 200

FieldTypeDescription
responseObject

Main object containing the response data.

    employeeTimeObject[]
      employeeObject

Employee object

        deptDescrString

The description of the department

        deptIdString

The id of the department

        empIdString

The internal id of the employee

        empNameString

The full name of the employee

        empNoString

The employee number

        groupDescrString

The description of the group

        groupIdString

The id of the group

        simulatedTimeNumber

The simulated time of the employee

  messageoptionalObject

Object containing response messages.

    codeNumber

Message code.

    textString

Message text.

    typeString

Type of message.

Allowed values:"warning""info"

Success example with a single shift:

HTTP/1.1 200 OK
{
"response": {
"data": {
"employeeTime": [
{
"empId": "1313",
"empNo": "MGE",
"empName": "Monica Geller",
"deptId": "WHOUSEAUR",
"deptDescr": "AUR warehouse department",
"groupId": "WHGRPAUR",
"groupDesc": "AUR's Warehouse group",
"simulatedTime": 117600
},
{
"empId": "1314",
"empNo": "CBI",
"empName": "Chandler Bing",
"deptId": "WHOUSEAUR2",
"deptDescr": "AUR second warehouse department",
"groupId": "WHGRPAUR",
"groupDesc": "AUR's Warehouse group",
"simulatedTime": 106200
}
]
}
}
}