Discussions

Ask a Question
Back to All

API Update employee email adress

hallo
we are using the APi to update some Employee data using a powershell script . we can update custom attributes without issues.
who can we post an update for employee Email address ?

$uri = "https://api.personio.de/v1/company/employees/$($user_id)"
$body = '{"employee":{"email":"' + "$Email" + '"}}'
Invoke-WebRequest -Uri $uri -Method PATCH -Headers $headers -ContentType 'application/json' -Body $body

i get a 200 as response but Email is not updated.

any hints?