Discussions
API automation employee endpoints
We are updating our API automation and have the following questions.
Set hire date TZ
We have set the hire_date to “2022-08-08” and the date has been set to “2022-08-08T00:00:00+02:00”
Although this would not normally be a big issue for locations situated in a time zone West of GMT we wanted to know why the date has not been set as timezone independent and what is the criteria.
Set the supervisor of an employee via API. Despite the various attempt we are still unsuccessful.
This is the body we have tried with the PATCH /employees/{employeeId} endpoint:
{
"employee" : {
"supervisor" : 1664761
}
}
Could you please suggest what is the right way to set the supervisor via API?
Set email of an employee on update.
Can we update the email of an employee. When will this be available in the API. When we create the user in Personio we have not initiated his account yet, so we do not have his email address.
Set onboarding script
Can we set the onboarding script or query the name of the onboarding script in the employee onboarding process
Status
We can update the status via the API to inactive by removing the hire date. What are the rules for updating of status.