ProRoster - Create a minimum manning template
API Url
Use it to create a new minimum manning template
POST
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 |
|---|---|---|
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 |
nameoptional | String | If the minimum manning will be a template, then the name must be provided. |
| planId | Number | Plan id |
Request example:
{"request": {"data": {"planMinManning": [{"planId": 2164886755,"date": "2020-11-18,"name": "test template"}]}}}
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. |