Discussions

Ask a Question
Back to All

"Update An Employee" (custom attribute) in Power Automate doesn't work

Using Power Automate the API for a custom connector works fine when using POST (requesting a token) and GET (getting employee attributes).

BUT it does not work for PATCH (when wanting to update a custom attribute in Personio). We have tried a lot mostly using this:

url: https://api.personio.de/v1/company/employees/{employee_id}, sometimes https://api.personio.de/v1/company/employees?employee_id&token=####

header: sometimes we left it clear and sometimes we put "token application/json

text: {
"employee": {
"customattributes": {
"dynamic
{{ field uid }}": "Alumni"
}
}
}

sometimes we put this in the default response additionally:

{
"success": true,
"data": {
"id": 12345
},
"meta": [
"string"
]
}

Nothing works. Either the error is "the token has been blacklisted" which is not possible. Or something like "Authorization is not provided" or just in German! which is not typical "etwas ist schief gelaufen" which means "something went wrong".

What are we doing wrong? Or is it possible that updating dynamic fields is currently also not possible like the email field which it says in the documentation?

Thank you for feedback in advance!