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
| Field | Type | Description |
|---|---|---|
| request | Object | Main object containing the request data. |
| data | Object | Object containg data to be uploaded. |
| attendanceProfiles | Object[] | Collection of attendance profiles. |
| date | Date | The starting date of the new attendance profile. |
| empId | String | Employee's id. |
| empNo | String | Employee's no. |
| id | String | The id of the attendance profile. |
Request example:
{"request": {"data": {"attendanceProfiles": [{"empId": "MVE1","empNo": "MVE12""id": "FLEX","date": "2019-07-25"}]}}}
Success 200
| Field | Type | Description |
|---|---|---|
| response | Object | Main object containing the response data. |
| data | Object | Object containing the requested data. |
messageoptional | Object | Object containing response messages. |
| code | Number | Message code. |
| text | String | Message text. |
| type | String | Type of message. "warning""info" |
Error 4xx
| Field | Type | Description |
|---|---|---|
| response | Object | Main object containing the response data. |
| data | Object | Object containing the requested data (empty). |
| errorCode | Number | Error code. |
| errorMessage | String | Error description. |