Project - Get project correction registrations
API Url
Use it to load project correction registrations.
http://localhost:16010/ProMarkREST/web/Project/employees/{empId}/corrections
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. |
Path parameters
| Field | Type | Description |
|---|---|---|
| empId | String | ID of the employee. |
Query parameters
| Field | Type | Description |
|---|---|---|
dateoptional | Date | Selected date for displaying project corrections. |
Success 200
| Field | Type | Description |
|---|---|---|
| response | Object | Main object containing the response data. |
| data | Object | Object containing the requested data. |
| corrections | Object[] | Object containing correction registrations. |
| date | Boolean | The date of the correction registrations |
| empId | String | The id of the employee for which the corrections are requested |
| registrations | Object[] | Collection of project corrections |
| actualTime | Datetime | The actual time the registration was made |
| attendanceDate | Date | The date that the registration belongs to. |
| closedPeriod | Boolean | The registration is in a closed period |
| correctedRegTime | Datetime | Registration time adjusted according to setup in ProMark |
| description | String | "Project time registration" |
| empId | String | Employee id |
| isDeleted | Boolean | The registration is deleted and cannot be altered. |
| isErroneous | Boolean | The registrations is erroneous and should either be changed or deleted. |
| noDelete | Boolean | It's not allowed to delete the registration. |
| noTimeChange | Boolean | regTime cannot be changed |
| projectTime | Object[] | Object containing project time data |
| activity | Object[] | Activity |
| description | String | Activity description |
| id | String | Activity id |
| extraInfo | Object[] | Extra info |
| id | String | Extra info id |
| value | Object | Extra info value |
| description | String | Extra info value description |
| id | String | Extra info value id |
| isCorrection | Boolean | True = is correction registration, False = normal registration |
| piecework | Object[] | Piecework |
| description | String | Piecework description |
| id | String | Piecework id |
| project | Object[] | Project |
| description | String | Project description |
| id | String | Project id |
| registeredTime | Number | Registered time |
| serialNo | String | Serial number for the corection registration |
| timeType | Object[] | Time type |
| description | String | Time type description |
| id | String | Time type id |
| readOnly | Boolean | It's not allowed to edit the registration |
| regTime | Datetime | The time of registration |
| terminalId | String | Numeric ID (optional prefixed by*) of registration terminal. |
| transSeq | Number | Unique reference of registration |
| type | String | "PR" |
| underValidation | Boolean | The registration is under validation |
| serialNo | Number | Serial number for the corection registrations |
messageoptional | Object | Object containing response messages. |
| code | Number | Message code. |
| text | String | Message text. |
| type | String | Type of message. "warning""info" |
Success example:
{"response": {"data": {"corrections": {"serialNo": "PM_OMP0000000508","date": "2020-06-15","empId": "949","registrations": [{"transSeq": 3246903,"type": "PR","description": "Project time registration","empId": "949","empName": "Mihaela Versin","attendanceDate": "2020-06-15","terminalId": "6666","isDeleted": false,"isErroneous": false,"regTime": "2020-06-15T23:59:59.000","actualTime": "2020-06-15T10:29:48.000","correctedRegTime": "2020-06-15T23:59:00.000","accountTime": "2020-06-15T08:00:00.000","readOnly": false,"noDelete": false,"noTimeChange": true,"closedPeriod": false,"underValidation": false,"approvalStatus": 1,"approval": [{"level": 1,"groupId": "AGPM1","groupDesc": "App.group ProManagement 1","deptId": "BH","status": 1}],"signOff": {"status": 1},"projectTime": {"project": {"id": "COLOR2","description": "Color project2"},"activity": {"id": "RED","description": "The color red"},"timeType": {"id": "MACHINE","description": "Machine hours"},"registeredTime": 7200,"isCorrection": true,"serialNo": "PM_OMP0000000508","absenceRelated": false}},{"transSeq": 0,"type": "PR","description": "Project time registration","attendanceDate": null,"terminalId": "","isDeleted": false,"isErroneous": false,"regTime": null,"actualTime": null,"correctedRegTime": null,"accountTime": null,"readOnly": false,"noDelete": false,"noTimeChange": false,"closedPeriod": false,"underValidation": false,"approvalStatus": 0,"projectTime": {"project": {"id": "0-AARSLEFF","description": "Aarsleff Sag I"},"activity": {"id": "ACT1","description": "Aarsleff activity 1"},"timeType": {"id": "HAND","description": "Hand hours"},"rate": 0.0,"absenceRelated": false}}]}}}}
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. |