curl --request POST \
--url https://{host}/schedule/api/employee-assignments \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"employeeId": 1,
"workingTimeArrangementId": 1,
"startsOn": "2023-12-25"
}
'{
"workContractId": 1,
"startsOn": "2023-12-25",
"employee": {
"id": 1,
"firstName": "<string>",
"lastName": "<string>",
"displayName": "<string>",
"jobQualificationName": "<string>",
"employeeNumber": "<string>",
"establishmentId": 1,
"establishmentName": "<string>",
"department": {
"id": 1,
"name": "<string>"
}
},
"id": 1,
"workingTimeArrangement": {
"id": 1,
"name": "<string>",
"unit": "day"
},
"endsOn": "2023-12-25"
}You may not benefit from this feature. Working-time-arrangements are the replacement for the workcycles. If this feature has not been deployed on your environment, please contact our support.
Assigns a new working time arrangement to a single employee, effective from the specified start date (assignmentStart).
This operation will:
assignmentStart.assignmentStart, that gives them the new working time arrangement.curl --request POST \
--url https://{host}/schedule/api/employee-assignments \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"employeeId": 1,
"workingTimeArrangementId": 1,
"startsOn": "2023-12-25"
}
'{
"workContractId": 1,
"startsOn": "2023-12-25",
"employee": {
"id": 1,
"firstName": "<string>",
"lastName": "<string>",
"displayName": "<string>",
"jobQualificationName": "<string>",
"employeeNumber": "<string>",
"establishmentId": 1,
"establishmentName": "<string>",
"department": {
"id": 1,
"name": "<string>"
}
},
"id": 1,
"workingTimeArrangement": {
"id": 1,
"name": "<string>",
"unit": "day"
},
"endsOn": "2023-12-25"
}API key. Value must be formatted like so: lucca application={api_key}.
Was this page helpful?