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

FieldTypeDescription
planIdNumber

Plan id.

Query parameters

FieldTypeDescription
fromoptionalDate

Start date for the template

tooptionalDate

End date for the template

Parameter

FieldTypeDescription
requestObject

Main object containing the request data.

  dataObject

Object containg data to be uploaded.

    planMinManningObject[]
      dateDate

The minimum manning date

      nameoptionalString

If the minimum manning will be a template, then the name must be provided.

      planIdNumber

Plan id

Request example:

{
"request": {
"data": {
"planMinManning": [
{
"planId": 2164886755,
"date": "2020-11-18,
"name": "test template"
}
]
}
}
}

Error 4xx

FieldTypeDescription
responseObject

Main object containing the response data.

  dataObject

Object containing the requested data (empty).

  errorCodeNumber

Error code.

  errorMessageString

Error description.