Discussions

Ask a Question
ANSWERED

Curl Error: couldn't open file on v1/recruiting/applications/documents

Hi, I try to upload a pdf file via v1/recruiting/applications/documents and get the error couldn't open file "https://www.domain.com/myfile.pdf" but the URL is correct and working in the browser. Do you have an idea what could be wrong? Here is my PHP-Code: $headers = [ 'accept: application/json', 'content-type: multipart/form-data', 'x-company-id: ' . $settingsArr['companyId'], 'authorization: Bearer ' . $settingsArr['accessToken'] ]; $postData['file'] = curl_file_create('https://www.domain.com/myfile.pdf', 'application/pdf', myfile.pdf); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $settingsArr['docUrl']); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_VERBOSE, true); curl_setopt($ch, CURLOPT_ENCODING, ''); curl_setopt($ch, CURLOPT_MAXREDIRS, 10); curl_setopt($ch, CURLOPT_TIMEOUT, 30); curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST'); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $postData); curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); $curlResponse = curl_exec($ch); $curlError = curl_error($ch); $curlInfo = curl_getinfo($ch); curl_close($ch);
ANSWERED

Multiple files of the same category when creating application via /v1/recruiting/applications

Hello, I'm getting a report from the recruiting team they can only see one file from the category `other`. The applications are created with a request body of: ``` { "job_position_id": "123456", "recruiting_channel_id": 123, "first_name": "First name", "last_name": "Last name", "email": "[email protected]", "files": [ { "extension": "txt", "mimetype": "text/plain", "original_filename": "CV.txt", "uuid": "f250383e-2945-41b4-b79c-a8456a8454fd", "size": 105, "category": "cv" }, { "extension": "png", "mimetype": "image/png", "original_filename": "some-image.png", "uuid": "21847740-6488-4f5d-b6cd-ec874c306ebf", "size": 129343, "category": "other" }, { "extension": "png", "mimetype": "image/png", "original_filename": "some-other-image.png", "uuid": "5085bed1-ffcc-46b2-a2c8-22772ccc2b9d", "size": 58609, "category": "other" }, { "extension": "png", "mimetype": "image/png", "original_filename": "a-third-image.png", "uuid": "50623574-8ffa-4d3d-843b-d22c48517dfc", "size": 15489, "category": "other" } ], "attributes": [ { "id": "gender", "value": "male" } ] } ``` According to the recruiters the only file of category `other` which shows up in the Personio UI is `a-third-image.png`, so the last one in the list. When using the request builder from https://developer.personio.de/reference/post_v1-recruiting-applications to provide multiple `other` files, your documentation suggests the following payload: ``` { "files": [ { "uuid": "abc", "original_filename": "abc.jpg", "category": "other" }, { "uuid": "cba", "original_filename": "cba.jpg", "category": "other" } ] } ``` I don't see how the request could be faulty especially since the application is created and a `201` is returned from the endpoint. Thanks in advance for any hint on what could be going wrong!
ANSWERED

Access Default Reports / Recruitment Information

Are there any plans to make default reports accessible via the API? We need to fetch recruitment data from personio and I cannot find a way to access it. Maybe I am overlooking something, things we already tried: - Recruiting API (only possible to post applicant information) - system reports (Info would be there althought data is not accessible through API) - custom report (not possible to create custom report with needed data) Thanks in advance!
ANSWERED

Mitarbeiterfluktuation

Hallo, wir möchten gerne die Mitarbeiterfluktuation nach der Schlüter Formel ermitteln. Ist geplant, dass Personio so etwas als Standardbericht anbietet. Welche Formel nutzt Personio derzeit für den Bericht "monatliche Fluktuation"?
ANSWERED

Missing "time_off_type" in /company/absence-periods response

Hello, there is no possibility to find out what kind of TimeOffType has an absence period. In /company/time-offs response there is an object: "time_off_type": { "type": "TimeOffType", "attributes": { "id": 54321, "name": "Vacation", "category": "offsite_work" } with the "category"-attribute, which can be found in the /company/time-off-types response. But /company/absence-periods has no such data. Why?
ANSWERED

post_company-attendances a limit ?

Hi, has the API post_company-attendances a limit, we post every 15 minutes in batch time bookings over the API, but it seems max. 10 always arrive at Personio? Or is there a timeout if necessary? https://developer.personio.de/reference/post_company-attendances Thanks

ZEITERFSSSUNG API ERROR Start time has to be smaller than end time

Hallo alle, Ich versuche mit dem API Endpunkt /company/attendances/ einen neuen Zeiteintrag zu erstellen, folgender Fehler wird angezeigt. { "success": false, "error": { "code": 400, "message": "Error when trying to insert Attendances periods rows", "detailed_message": [ { "success": false, "error_msg": "Start time 2022-10-20T12:13:00.000Z has to be smaller than end time 2022-10-20T11:16:00.000Z", "id": null, "employee": xxxx, "date": "2022-10-20", "start_time": "15:48", "end_time": "16:47", "break": 0, "comment": "", "project_id": xxxx } ] } } obwohl alles mit der API Anfrage stimmt. Beginn und ende sind korrekt hinterlegt array:1 [ "attendances" => array:1 [ 0 => array:7 [ "employee" => xxxx "date" => "2022-10-20" "start_time" => "15:48" "end_time" => "16:47" "break" => 0 "project_id" => xxxx "comment" => "" ] ]
ANSWERED

Recruiting API not working properly

Hi, I am using the https://api.personio.de/v1/recruiting/applications endpoint as documented in the API reference. However, when I provide the "phase" within the JSON payload, the new applicant always is saved to the very first phase in my pipeline. This seems to be a bug. Can you please try to reproduce that? Thank you Marvin
ANSWERED

Adjusting working time model via API

Is it possible to adjust the working time model for certain employees via API? We would like to adjust the working days for employees so that vacation requests can calculate the correct number of vacation days used.
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