ProRoster - Get assigned demand matching employees

API Url

Use it for returning a list of employees matching a specific assigned-demand, mostly when reassigning a demand to employees.

GET
http://localhost:16010/ProMarkREST/rest/ProRoster/assigned-demands/{id}/matching-employees

Permissions: user

Path parameters

FieldTypeDescription
idNumber

The id of the assigned demand to be verified.

Query parameters

FieldTypeDescription
dateoptionalDate

Date of the shift.

empIdsoptionalString

List of empIds separated with comma delimiter.

Success 200

FieldTypeDescription
responseObject

Main object containing the response data.

  dataObject

Object containing the requested data.

    matchingEmployeesObject[]

Array of employees

      dateDate

The date in which the absence matches.

      empIdString

Employee id

      empNameString

Employee full name

      empNoString

Employee number

      warningCodeNumber

If employee's department/empgroup/approval group/category do not match the ones in the demand, you will get a warning. It does not mean that the employee is not compatible with the demand, just that there will be changes in the timequeue for that employee when the demand is published.

      warningMessageString

Warning message.

  messageoptionalObject

Object containing response messages.

    codeNumber

Message code.

    textString

Message text.

    typeString

Type of message.

Allowed values:"warning""info"

Success example:

HTTP/1.1 200 OK
{
"response": {
"data": {
"matchingEmployees": [
{
"empId": "833",
"empNo": "JDO",
"empName": "John Doe",
"warningCode": 49,
"warningMessage": "Employee's department does not match the demand's department."
}
]
},
"errorCode": 0,
"errorMessage": ""
}
}