General - Change attendance profile

API Url

Change attendance profile for the employees specified in the input json, starting with the specified date.

PUT
http://localhost:16010/ProMarkREST/rest/General/attendance-profiles

Permissions: user

Parameter

FieldTypeDescription
requestObject

Main object containing the request data.

  dataObject

Object containg data to be uploaded.

    attendanceProfilesObject[]

Collection of attendance profiles.

      dateDate

The starting date of the new attendance profile.

      empIdString

Employee's id.

      empNoString

Employee's no.

      idString

The id of the attendance profile.

Request example:

{
"request": {
"data": {
"attendanceProfiles": [
{
"empId": "MVE1",
"empNo": "MVE12"
"id": "FLEX",
"date": "2019-07-25"
}
]
}
}
}

Success 200

FieldTypeDescription
responseObject

Main object containing the response data.

  dataObject

Object containing the requested data.

  messageoptionalObject

Object containing response messages.

    codeNumber

Message code.

    textString

Message text.

    typeString

Type of message.

Allowed values:"warning""info"

Error 4xx

FieldTypeDescription
responseObject

Main object containing the response data.

  dataObject

Object containing the requested data (empty).

  errorCodeNumber

Error code.

  errorMessageString

Error description.