General - Get attendance profile for an employee
API Url
Used for loading attendance profile for an employee in a specific date.
GET
http://localhost:16010/ProMarkREST/rest/General/employees/{empId}/attendance-profiles
Permissions: user
Request headers
| Field | Type | Description |
|---|---|---|
Accept-Languageoptional | String | =en-GB Language use for localization. |
X-Clientoptional | String | =Client type. "Portal""Mobile""Admin" |
X-Roleoptional | Number | ProMark role (1: Employee, 2: User). {12} |
X-WebPart-Idoptional | Number | Unique web-part identifier. |
Query parameters
| Field | Type | Description |
|---|---|---|
dateoptional | Date | The date for which the attendance profile is retrieved (default is today). |
Success 200
| Field | Type | Description |
|---|---|---|
| response | Object | Main object containing the response data. |
| data | Object | Object containing the requested data. |
| attendanceProfiles | Object[] | Collection of attendance profiles. |
| date | Date | Attendance profile date. |
| description | String | Attendance profile description. |
| empId | String | Employee ID. |
| empNo | String | Employee No. |
| id | String | Attendance profile Id. |
messageoptional | Object | Object containing response messages. |
| code | Number | Message code. |
| text | String | Message text. |
| type | String | Type of message. "warning""info" |
Success example:
HTTP/1.1 200 OK{"response": {"data": {"attendanceProfiles": [{"empId": "1083","id": "HLCMD","description": "HLC Midday shift","date": "2019-07-24"}]},"errorCode": 0,"errorMessage": ""}}
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. |