ProRoster - Create a minimum manning setup
API Url
Use it to create a new minimum manning setup
POST
http://localhost:16010/ProMarkREST/web/ProRoster/plans/{planId}/minimum-manning
Permissions: user
Path parameters
| Field | Type | Description |
|---|---|---|
| planId | Number | Plan id. |
Query parameters
| Field | Type | Description |
|---|---|---|
fromoptional | Date | Start date for the template |
tooptional | Date | End date for the template |
Parameter
| Field | Type | Description |
|---|---|---|
| request | Object | Main object containing the request data. |
| data | Object | Object containg data to be uploaded. |
| planMinManning | Object[] | |
| date | Date | The minimum manning date |
| minManning | Number[24] | An array with size 24 that contains the number of employess for each hour of the day |
| planId | Number | Plan id |
Request example:
{"request": {"data": {"planMinManning": [{"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]}]}}}
Success 200
| Field | Type | Description |
|---|---|---|
| response | Object | Main object containing the response data. |
messageoptional | Object | Object containing response messages. |
| code | Number | Message code. |
| text | String | Message text. |
| type | String | Type of message. "warning""info" |
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. |