An employee's contractual working time and working pattern can be stored against the employment record. These end points allow for the querying and updating of working time records as held against an employee record
Employee work patterns
General Error
{- "data": {
- "id": "a0bc1ba8-063e-c1fd-3e8f-6b5951f33e03",
- "type": "employeeworkingTimes",
- "attributes": {
- "fromDate": "2022-11-17",
- "toDate": "2023-11-17",
- "fteFactor": 0.666666,
- "contractHoursPerWeek": 20,
- "contractDaysPerWeek": 3,
- "contractWeeksPerAnnum": 26
}
}
}Update employee working time
employee FTE work patterns
General Error
{- "data": {
- "type": "employeeWorkingTimes",
- "attributes": {
- "fromDate": "2022-11-17",
- "toDate": "2023-11-17",
- "fteFactor": 0.666666,
- "contractHoursPerWeek": 20,
- "contractDaysPerWeek": 3,
- "contractWeeksPerAnnum": 26
}, - "id": "906264f1-2dff-4f72-a10b-59918cf738d7"
}
}{- "data": {
- "id": "a0bc1ba8-063e-c1fd-3e8f-6b5951f33e03",
- "type": "employeeworkingTimes",
- "attributes": {
- "fromDate": "2022-11-17",
- "toDate": "2023-11-17",
- "fteFactor": 0.666666,
- "contractHoursPerWeek": 20,
- "contractDaysPerWeek": 3,
- "contractWeeksPerAnnum": 26
}
}
}Employee work patterns array
General Error
{- "data": [
- {
- "id": "a0bc1ba8-063e-c1fd-3e8f-6b5951f33e03",
- "type": "employeeworkingTimes",
- "attributes": {
- "fromDate": "2022-11-17",
- "toDate": "2023-11-17",
- "fteFactor": 0.666666,
- "contractHoursPerWeek": 20,
- "contractDaysPerWeek": 3,
- "contractWeeksPerAnnum": 26
}
}
]
}Add employee working time
Employee work patterns
General Error
{- "data": {
- "type": "employeeWorkingTimes",
- "attributes": {
- "fromDate": "2022-11-17",
- "toDate": "2023-11-17",
- "fteFactor": 0.666666,
- "contractHoursPerWeek": 20,
- "contractDaysPerWeek": 3,
- "contractWeeksPerAnnum": 26
}
}
}{- "data": {
- "id": "a0bc1ba8-063e-c1fd-3e8f-6b5951f33e03",
- "type": "employeeworkingTimes",
- "attributes": {
- "fromDate": "2022-11-17",
- "toDate": "2023-11-17",
- "fteFactor": 0.666666,
- "contractHoursPerWeek": 20,
- "contractDaysPerWeek": 3,
- "contractWeeksPerAnnum": 26
}
}
}