Discussions

Ask a Question
ANSWERED

Document Upload MediaType Not Supported Error

On POST Request to Document Upload for Application, I keep getting MediaType not supported error, even though base64 Data String and other parameters match the request. I'm sending the request via PHP and function body looks like this that handles the request: $body = $req->get_body(); $headers = $req->get_headers(); $token = $headers['authorization'][0]; $url = 'https://api.personio.de/v1/recruiting/applications/documents'; $response = wp_remote_post( $url, array( 'method' => 'POST', 'headers' => array( "Accept: application/json", "Content-Type: multipart/form-data", 'X-Company-ID: XXXXXX', 'Authorization' => "Bearer $token", ), 'name' => 'file', 'filename' => 'test file name', 'contents' => $body $body is the argument I give with base64 string for the document via Front-End.
ANSWERED

https://api.personio.de/v1/company/time-offs

I get in Postman and also via the try button the error: { "success": false, "error": { "message": "The given data was invalid.", "code": 0, "error_data": { "employees": [ "The employees must be an array." ] } } } What do I have to consider to make it work?
ANSWERED

Random 403/404 errors when using API through Proxy

Hello there, I'm having trouble with the documents endpoint of the Personio Recruiting API. I'm receiving random and unpredictable 403 and 404 errors; and occasionally it just works. I'm using an Nginx Reverse Proxy to hide the credentials from the general public. Other than that, the setup is pretty basic. The 403 error contains the following message: 'xyz' not a valid key=value pair (missing equal-sign) in Authorization header: 'Bearer xyz'.". But the header is set correctly. This is the configuration of the proxy: location /documents/upload { proxy_pass https://api.personio.de/v1/recruiting/applications/documents; proxy_set_header Authorization "Bearer xyz"; proxy_set_header X-Company-ID 123; proxy_hide_header Strict-Transport-Security; proxy_hide_header Referrer-Policy; proxy_hide_header Content-Security-Policy; } What could be the issue here? Are there general issues with the use of proxies and your API? Thanks in advance.
ANSWERED

Dynamic properties in Employee object

Hello, We are working with your REST API right now and have noticed that you prefer to use dynamic properties there. While it might have some advantages, I see some disadvantages here. Dynamic properties might change, therefore they are dynamic. And since the Label of the dynamic properties seem to be dependent on the current language, I would guess that it might change, too. Do you have any suggestions how to ensure that fetching data from dynamic properties will also work in the future? For example, employee.Attributes.Dynamic_1538436.Value represents the birthdate, how can I ensure that Dynamic_1538436 will always stand for the birthdate? Many thanks!
ANSWERED

Salary and work time schedule history

Personio models changes to salary and work time schedule over time, are there any plans to make it possible to retrieve this information via the api. We would like to be personio to be the source of truth for personell cost and to make this possible we would also need historic info not just the current salary.
ANSWERED

Invalid multipart request body and/or headers supplied.

hello, Im sending a post request to 'https://api.personio.de/v1/recruiting/applications/documents' and im encoding the file to base64 but i getting the title error. thanks
ANSWERED

Personio and Ms365 integration.

I am trying to find a way to integrate Personio with Ms 365. Is there any way, when data of an employee is added in Personio, the data is automatically updated in ms 365? I want less manual work.
ANSWERED

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?
ANSWERED

Where can I find / generate bearer token?

Hi, I am trying to integrate attendance from developers hub and to send a POST request I need the bearer token, How can I create one?
ANSWERED

Zapier Integration

Hello everybody, did someone manage to create a Zapier Integration for the Personio API? Greetings, Michael