ProRoster - Get manning for a plan

API Url

Use it to get informations about the manning in a plan

GET
http://localhost:16010/ProMarkREST/web/ProRoster/plans/{planId}/manning

Permissions: user

Path parameters

FieldTypeDescription
planIdNumber

Plan id.

Query parameters

FieldTypeDescription
empIdsoptionalString

List with employee ids of the plan

fromoptionalDate

From date, default = TODAY

tooptionalDate

To date, default = TODAY

Success 200

FieldTypeDescription
responseObject

Main object containing the response data.

    manningObject[]
      dateDate

The date for manning

    valuesObject
      actualEmployeesNumber[24]

An array with size 24 that contains the actual number of employess

      minimumEmployeesNumber[24]

An array with size 24 that contains the number of employess for each hour of the day based on the min manning setup

  messageoptionalObject

Object containing response messages.

    codeNumber

Message code.

    textString

Message text.

    typeString

Type of message.

Allowed values:"warning""info"

Success example:

HTTP/1.1 200 OK
{
"response": {
"data": {
"manning": [
{
"date": "2020-12-22",
"values": {
"minimumEmployees": [0,1,2,3,4,8,5,7,9,3,8,13,15,12,14,15,16,17,17,18,19,19,16,10],
"actualEmployees": [0,0,0,0,0,0,0,0,5,5,5,5,5,5,5,5,5,0,0,0,0,0,0,0]
}
},
{
"date": "2020-12-23",
"values": {
"minimumEmployees": [0,1,2,3,4,8,5,7,9,3,8,13,15,12,14,15,16,17,17,18,19,19,16,10],
"actualEmployees": [0,0,0,0,0,0,0,0,5,5,5,5,5,5,5,5,5,0,0,0,0,0,0,0]
}
}
]
}
}
}

Error 4xx

FieldTypeDescription
responseObject

Main object containing the response data.

  dataObject

Object containing the requested data (empty).

  errorCodeNumber

Error code.

  errorMessageString

Error description.