Discussions

Ask a Question
Back to All

Change of a non-predefined employee-attribute

Hello!

I want to change some attributes of an employee, but i is only possible for predefined attributes:

I read out an employee (i show only "date_of_birth" (predefined attribute) and "personal number" (non-predefined attribute)):
"dynamic_5042969":
{"label":"Geburtstag","value":"1972-06-13T00:00:00+01:00","type":"date","universal_id":"date_of_birth"}
"dynamic_5042971":
{"label":"Personalnummer","value":"TestNr1234","type":"standard","universal_id":null}

Then i update this employee:
{"employee":{
"first_name":"Karli","last_name":"Berger",
"custom_attributes":{"dynamic_5042971":"12345678"},
"custom_attributes":{"dynamic_5042969":"1971-06-13"}
}}

Result is "success", but only the "date of birth" is changed.

Why the "personal nr" is not changed?

Thank you,
Michael