Discussions

Ask a Question

POST Attendances

why does this transfer not work? (Employee ID and token have been replaced) <br /> [Net.ServicePointManager]\::SecurityProtocol = [Net.SecurityProtocolType]'Tls11,Tls12' $headers=@{} $headers.Add("accept", "application/json") $headers.Add("content-type", "application/json") $headers.Add("authorization", "$Token") $response = Invoke-WebRequest -Uri '<https://api.personio.de/v1/company/attendances'> -Method POST -Headers $headers -ContentType 'application/json' -Body '{"attendances":[{"employee":XXXXXXX,"date":"2024-01-18","start_time":"06:37","end_time":"16:47","break":45,"comment":"Test5 Übertragung von TA Zeitblick"},{"employee":XXXXXXX,"date":"2024-01-19","start_time":"06:35","end_time":"15:37","break":30,"comment":"Test6 Übertragung von TA Zeitblick"}]}' Server response Invoke-WebRequest : Der Remoteserver hat einen Fehler zurückgegeben: (400) Ungültige Anforderung. In D:\\Scripte\\TA_Zeitblick_Archiv\\Hilfe\\Personio\\Anwesenheiten_nach_Personio_uebertragen_JSON.PS1:55 Zeichen:13 - $response = Invoke-WebRequest -Uri '<https://api.personio.de/v1/compan> ... - CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebException - FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand {"success":true,"data":{"token":"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX","expires_in":86400,"scope":"employees:read employees:write attendances:read attendances:write absences:read absences:write documents :read documents:write reports.custom:read reports.custom:write"}} Thanks Bert
ANSWERED

List Absence Periods not working?

for some reason the List Absence Period request is not returning any results. List Time-Offs is working as intended with the same input data (only start & end date provided). Am I missing something? There definitely are absences in this period, as they are listed by the time-offs query. { "success": true, "metadata": { "total_elements": 0, "current_page": 1, "total_pages": 0 }, "data": \[], "offset": 0, "limit": 200 }
ANSWERED

half_day_start and half_day_end are integers?

When i create a Time-Off, the values half_day_start and half_day_end are returned as integers. (at least in my case i set them to false, and the returned as 0). In the documentation it says, the are type boolean. Is this a bug or a mistake in the Documentation?
ANSWERED

individual API - for social media campaign

Hello We want to start a social media campaign with a new agency. We need to start a connection so that the leads from the social media campaign can go directly into Personio. Unfortunately, there is not yet a standardized API between the agency and personio in the Marketplace. We would follow the path below - are we on the right track? Go to: Settings in Personio --> Integrations --> API --> Create individual integration. Webhooks - Reading - Edit Is this the right setting? We only want a kind of "one-way street" - i.e. that the leads come from the agency to us in Personio. We don't want to give the agency access to the system, applications or employee data. Our questions: - Is this the right way to go? - What exactly is behind "webhooks"? Unfortunately, the Personio article didn't help us. - Is it common for the agency to need the company ID in addition to the token of the individual API? Thank you and best regards Andrea
ANSWERED

Strange behavior with Employee Endpoint without offset & limit set

We are currently experiencing problems with the employee endpoint "List Employees". By default, we do not set an offset and limit and address the endpoint directly via "<https://api.personio.de/v1/company/employees">. This worked quite well until recently. Today we noticed that the updated data in Personio is not being passed via this endpoint. The data records are still in the state before the update. If you set a value for Limit and Offset, the updated data records appear. Is this an intended behavior? If so, is there another way to get more than 200 employees with one single query, since we have more than 200 employees?
ANSWERED

Attendancies on projects?

Hello there, I was wondering if there's a way to get the attendances off the API based on projects. I'm trying to implement this onto an app I am building, but the pagination and the sheer amount of attendancies created by just clocking in are making my app considerably slower, so I figured that maybe it would be a good idea to filter out attendancies based on ongoin projects. <br /> Happy to hearing from you soon.
ANSWERED

How to get hire_date and termination_date

Hey everyone, I need to get some informations from the API for our internal project. my co-worker now said, that he needed hire_date and termination_date to calculate a fluctuation rate. in another thread i saw someone posting the request object from the endpoint /employees from a year ago and that had both sections in it. when I call the /employees endpoint i get everything but the hire and termination date. how do i get it? am i missing something? is there something that needs to be done in personio itself before i get these? any help is very much appreaciated. thanks! Greetings Finn
ANSWERED

Duplicate Absences in Outlook

Good Morning, I am using the Personio API to import absences into Personio. However, I have encountered an issue: there doesn't seem to be an API endpoint for updating an absence, possibly due to the approval workflow. As a workaround, I am deleting and re-inserting the updated absence. Additionally, we have activated the Outlook synchronization feature to display absences in Outlook. This has led to another issue: each cycle of deleting and re-inserting an absence results in the absence being duplicated in Outlook. I have two questions: 1. Is there indeed no way to update an absence via the API? If there is, how can I do it correctly? 2. Why are absences being duplicated in Outlook? I believe I might be missing something. Any guidance you can provide would be greatly appreciated. Thanks and kind regards, Alex
ANSWERED

Is it possible to pre-filter a location inside the jobs iframe?

Is it possible to pre-filter a location inside the jobs iframe code?
ANSWERED

problems with recruting api /johnbaker.personio.de

Hello I received the api key from my personio login. There seems to be an issue: If I try it on your dev-page it doesn't work <https://developer.personio.de/reference/post_v1-recruiting-applications> It' says; Sorry you couldn't be authentificated.... If I deliberatly send a wrong api-key I get a formatted error message. But If I try it via postman I get a blank response and it's marked as 401. Thanks for letting me know if I'm doing something wrong, kind regards Robert