ProRoster - Get employees that match with an assigned task
API Url
Use it to return a list of all employees of a plan that match a task on a date.
GET
http://localhost:16010/ProMarkREST/web/ProRoster/assigned-tasks/{taskId}/matching-employees
Permissions: user
Path parameters
| Field | Type | Description |
|---|---|---|
| taskId | Number | Task id. |
Query parameters
| Field | Type | Description |
|---|---|---|
dateoptional | Date | Date of the task |
empIdsoptional | String | List of employees. |
Success 200
| Field | Type | Description |
|---|---|---|
| response | Object | Main object containing the response data. |
| matchingEmployees | Object[] | |
| date | Date | Date whenthe task can be assigned |
| emName | String | Employee name |
| empId | String | Employee id |
| empNo | String | Employee number |
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": "1313","empNo": "MGE","empName": "Monica Geller","date": "2021-06-11"},{"empId": "1314","empNo": "CBI","empName": "Chandler Bing","date": "2021-06-11"},{"empId": "1316","empNo": "PBU","empName": "Phoebe Buffay 3","date": "2021-06-11"}]}}}