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.
http://localhost:16010/ProMarkREST/rest/ProRoster/assigned-demands/{id}/matching-employees
Permissions: user
Path parameters
| Field | Type | Description |
|---|---|---|
| id | Number | The id of the assigned demand to be verified. |
Query parameters
| Field | Type | Description |
|---|---|---|
dateoptional | Date | Date of the shift. |
empIdsoptional | String | List of empIds separated with comma delimiter. |
Success 200
| Field | Type | Description |
|---|---|---|
| response | Object | Main object containing the response data. |
| data | Object | Object containing the requested data. |
| matchingEmployees | Object[] | Array of employees |
| date | Date | The date in which the absence matches. |
| empId | String | Employee id |
| empName | String | Employee full name |
| empNo | String | Employee number |
| warningCode | Number | 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. |
| warningMessage | String | Warning message. |
messageoptional | Object | Object containing response messages. |
| code | Number | Message code. |
| text | String | Message text. |
| type | String | Type of message. "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": ""}}