System - Save employee shift rating

API Url

Use it to save an employee shift rating.

PUT
http://localhost:16010/ProMarkREST/web/General/employees/{empId}/shift-ratings

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.

Parameter

FieldTypeDescription
requestObject

Main object containing the request data.

  dataObject

Object containg data to be uploaded.

    rateObject[]
      attendanceDateDate

Shift attendance date.

      normalTimeStartNumber

Shift start time.

      reasonIdString

Reason id.

      valueNumber

Rating value

Request example:

{
"request": {
"data": {
"rate":
{
"attendanceDate": "2017-02-13",
"normalTimeStart: "28800",
"value": 9,
"reasonId": "1"
}
}
}
}

Error 4xx

FieldTypeDescription
responseObject

Main object containing the response data.

  dataObject

Object containing the requested data (empty).

  errorCodeNumber

Error code.

  errorMessageString

Error description.