ProRoster - Get demand matching employees

API Url

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

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

Permissions: user

Path parameters

FieldTypeDescription
idNumber

The id of the 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 demand matches.

      empIdString

Employee id

      empNameString

Employee full name

      empNoString

Employee number

      messagesObject[]

List of messages(info/warning/errors)

        codeString

The code of the message.

        levelString

The severity of the message. 0=success,1=info,2=warning,3=error

        messageString

The text of the 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",
"messages":[
{
"level": 2,
"code": 49,
"message": "Employee's department does not match the demand's department."
},
{
"level": 1,
"code": 113,
"message": "The demand matches the employee's preference"
}
]
}
]
},
"errorCode": 0,
"errorMessage": ""
}
}