ProRoster - Get changes.

API Url

This api is used to load changes in a plan in a period of time.

GET
http://localhost:16010/ProMarkREST/rest/ProRoster/plans/{id}/changes

Permissions: user

Path parameters

FieldTypeDescription
idNumber

The Plans's unique identifier.

Query parameters

FieldTypeDescription
empIdsoptionalNumber

List of employee ids to get changes for , If not provided changes will load for all employees in the plan.

filteroptionalString

Smart Filter's Josn.

filterIdoptionalNumber

The Filter ID.

fromDate

Start of the period.

toDate

End of the period.

Success 200

FieldTypeDescription
      shiftsoptionalObject[]

Collection of shifts (only when expand=shifts).

        attendanceTimeoptionalObject[]

Attendancetime interval of the shift.

          endTimeoptionalNumber

End time of the interval in seconds.

          startTimeoptionalNumber

Start time of the interval in seconds.

        dateDate

The date of the shift.

        dayProfileoptionalObject[]

The day profile object.

          backColoroptionalString

BackGround color.

          descriptionString

Description of the day profile.

          endTimeoptionalNumber

Normal time end of day profile.

          foreColoroptionalString

ForeGround color.

          idString

Day profile ID.

          isVariableBoolean

True if day profile is variable.

          startTimeoptionalNumber

Normal time start of day profile.

        departmentoptionalObject[]

The department object.

          descriptionoptionalString

Description of the department.

          idString

Id of the department.

        empIdString

The Id of the employee.

        groupoptionalObject[]

The group object.

          descriptionoptionalString

Description of the group.

          idString

Id of the group.

        idNumber

The Id of the shift.

        isNewBoolean

True if shift is just created False if not.

        isPublishedBoolean

True if shift is published False if not.

        normalTimeoptionalObject[]

Normal time interval for variable day profiles.

          endTimeoptionalNumber

End time of the interval in seconds.

          startTimeoptionalNumber

Start time of the interval in seconds.

        planIdNumber

The Id of the plan.

Success example:

HTTP/1.1 200 OK
{
"response": {
"data": {
"shifts": [
{
"id": 802925200,
"empId": "933",
"date": "2019-06-12",
"planId": 2163133252,
"isPublished": false,
"isNew": false,
"dayProfile": [
{
"id": "FLEX",
"startTime": 28800,
"endTime": 57600,
"description": "Fixed/flex",
"isVariable": false,
"foreColor": "FFFFFF",
"backColor": "5032F5"
}
],
"attendanceTime": [
{
"startTime": 39600,
"endTime": 50400
}
],
"department": [
{
"id": "SUMMERDP",
"description": "Hotel Summer department"
}
],
"group": [
{
"id": "1",
"description": "BH1"
}
]
}
]
}
]
},
"errorCode": 0,
"errorMessage": ""
}
}

Error 4xx

FieldTypeDescription
responseObject

Main object containing the response data.

  dataObject

Object containing the requested data (empty).

  errorCodeNumber

Error code.

  errorMessageString

Error description.