Registrations - Absence, PUT
API Url
Absence (AB) variant of generic registration
Ignore the URI, for the correct URI see
http://localhost:16010/ProMarkREST/{DummyRegistration?type=AB}
Parameter
| Field | Type | Description |
|---|---|---|
| absence | object | All day absence |
commentoptional | string | Free text comment/answer. |
contactPersonoptional | object | Contact person |
| id | string | Internal employee id of contact person. |
normTimeIntvoptional | object | Normal time interval |
| end | number | End of interval |
| start | number | Start of interval |
| activity | object | Activity |
| id | string | ID of activity |
extraInfooptional | object[] | Collection of extra info objects |
| id | string | ID of extra info |
| value | object | Extra info value |
| id | string | ID of extra info value |
pieceworkoptional | object | Piecework |
| id | string | ID of piecework |
| project | object | Project |
| id | string | ID of project |
timeTypeoptional | object | Time Type |
| id | string | ID of timeType |
| reason | object | |
| code | string | ID of reason |
distributionoptional | object[] | Distribution of absence on secondary reasons. Either time or percentage must be filled out, not both. |
| percentage | number | The absence in percentage. |
| reason | object | Secondary reason. |
| code | string | ID of reason |
| type | string | Reason type "AA" |
| time | number | The absence time in seconds. |
secondaryReasonoptional | object | Secondary reason |
| group | string | Secondary reason group. |
| id | string | Secondary reason id. |
| type | string | Reason type "AA" |
| empId | string | Internal employee ID |
locationoptional | object | Geo location of registration |
| latitude | number | Latitude, negative value is west -180 to 180 |
| longitude | number | Longitude, negative value is south -180 to 180 |
| regTime | datetime | The time of registration |
| terminalId | string | Numeric ID of registration terminal, or if not numeric, then it's the ID of the user that changed or added the registration |
| transSeq | number | Unique reference of registration |
| type | string | Default value: AB |
Success 200
| Field | Type | Description |
|---|---|---|
projectDimensionoptional | object | Dimensions of the related project registration. Only if reason is setup to be related to project time. |