ProRoster - Get minimum manning templates list
API Url
Use it to get a list of minimum manning templates
GET
http://localhost:16010/ProMarkREST/web/ProRoster/plans/{planId}/manning-templates
Permissions: user
Path parameters
| Field | Type | Description |
|---|---|---|
| planId | Number | Plan id. |
Query parameters
| Field | Type | Description |
|---|---|---|
dateoptional | Date | Date of the minimum manning |
Success 200
| Field | Type | Description |
|---|---|---|
| response | Object | Main object containing the response data. |
| planMinManning | Object[] | |
dateoptional | Date | The minimum manning date, when date is given |
| id | Number | Template id |
minManningoptional | Number[24] | An array with size 24 that contains the number of employess for each hour of the day, when date is given |
| name | String | Template name |
| planId | Number | Plan id |
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": {"planMinManning": [{"id": 2254285028,"planId": 2164886755,"date": "2020-11-18,"minManning": [null, null, null, null, null, null, null, null, null, 8, 5, 2, 7, 1, 4, 5, 7, null, null, null, null, null, null, null],"name": "Template test"}]}}}
Error 4xx
| Field | Type | Description |
|---|---|---|
| response | Object | Main object containing the response data. |
| data | Object | Object containing the requested data (empty). |
| errorCode | Number | Error code. |
| errorMessage | String | Error description. |