ProRoster - Get the remaining rotation hours

API Url

Use it to get the number of hours remained in a rotation

GET
http://localhost:16010/ProMarkREST/web/ProRoster/plans/{id}/rotation-hours

Permissions: user

Request headers

FieldTypeDescription
Accept-LanguageoptionalString

=en-GB Language use for localization.

X-ClientoptionalString

=Client type.

Allowed values:"Portal""Mobile""Admin"
X-RoleoptionalNumber

ProMark role (1: Employee, 2: User).

Allowed values:{12}
X-WebPart-IdoptionalNumber

Unique web-part identifier.

Path parameters

FieldTypeDescription
planIdString

Plan id.

Query parameters

FieldTypeDescription
dateoptionalDate

The date relativ to which the rotation is calculated. If empty, the default will be TODAY

empIdsoptionalString

List of employee ids separated by comma. Used to return the data only for certain employees. If list contains employees that are not in the plan, they are ignored.

Error 4xx

FieldTypeDescription
responseObject

Main object containing the response data.

  dataObject

Object containing the requested data (empty).

  errorCodeNumber

Error code.

  errorMessageString

Error description.