forked from personio/api-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpersonio-personnel-data-api-oa3.yaml
5504 lines (5397 loc) · 174 KB
/
personio-personnel-data-api-oa3.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
openapi: 3.0.0
info:
version: "1.0"
title: Personnel Data
description: API for reading and writing personnel data including data about attendances, absences, documents, etc
x-readme:
samples-languages:
- "curl"
- "python"
- "ruby"
- "java"
- "php"
- "node"
paths:
/company/employees:
parameters:
- $ref: "#/components/parameters/XPersonioPartnerID"
- $ref: "#/components/parameters/XPersonioAppID"
get:
security:
- BearerAuth: []
tags:
- Employees
parameters:
- name: limit
in: query
required: false
description: Pagination attribute to limit the number of employees returned per page.
schema:
type: integer
minimum: 1
default: 10
example: 10
- name: offset
in: query
required: false
description: Pagination attribute to identify the first item in the collection to return.
schema:
type: integer
minimum: 0
default: 0
example: 0
- name: email
in: query
required: false
description: "Find an employee with the given email address. The response is still a list, containing only the filtered employee. NOTE: when using the updated_since filter, the email filter is ignored."
schema:
type: string
- name: attributes[]
in: query
description: |-
A list of attributes that will be returned for the employees, ie. a projection of the employee fields and relationships. In case `updated_since` query parameter is used, this list will additionally be used to exclude the employees that had none of the provided `attributes[]` updated since `updated_since`, ie. a selection filter.
example: "?attributes[]=first_name&attributes[]=last_name"
required: false
schema:
type: array
items:
type: string
example: ["first_name", "last_name"]
- name: updated_since
in: query
required: false
description: >2- # indentation is 2 spaces (so code is aligned); strip LF at the end
Filter to select and return only the employees that have been updated after `updated_since`. When it is used together with the `attributes[]` query parameter, the filter will select only the employees that have had any of the provided `attributes[]` updated since `updated_since`. The format is `ISO 8601` (2022-12-24T08:15:30). NOTE: when using the `updated_since` filter, the `email`, `limit`, and `offset` parameters are ignored.
<details>
<summary><b>Examples with <code>updated_since</code> and <code>attributes[]</code>:</b></summary><br />
In an example company that has 17 employees:<br /><br />
<details>
<summary>
<code class="language-html">?updated_since=2022-12-24T08:15:30</code>
will yield 10 employees that were recently updated:
</summary>
<p><pre class="prettyprint"><code language="json" class="language-json">
{
"success": true,
"metadata": {
"total_elements": 10,
"current_page": 0,
"total_pages": 10
},
"offset": 0,
"limit": 1,
"data": [
{
"type": "Employee",
"attributes": {
"id": {
"label": "ID",
"value": 1,
"type": "integer",
"universal_id": "id"
},
"first_name": {
"label": "First name",
"value": "Alexander",
"type": "standard",
"universal_id": "first_name"
},
"last_name": {
"label": "Last name",
"value": "Bergmann",
"type": "standard",
"universal_id": "last_name"
},
"email": {
"label": "Email",
"value": "[email protected]",
"type": "standard",
"universal_id": "email"
}
}
}, ...
],
...
...
}
</code></pre></p>
</details><br />
<details>
<summary>
<code class="language-html">?attributes[]=first_name</code>
will yield all 17 employees:
</summary>
<p><pre class="prettyprint"><code language="json" class="language-json">
{
"success": true,
"metadata": {
"total_elements": 17,
"current_page": 0,
"total_pages": 17
},
"offset": 0,
"limit": 1,
"data": [
{
"type": "Employee",
"attributes": {
"id": {
"label": "ID",
"value": 1,
"type": "integer",
"universal_id": "id"
},
"first_name": {
"label": "First name",
"value": "Alexander",
"type": "standard",
"universal_id": "first_name"
}
}
}
]
}
</code></pre></p>
</details><br />
<details>
<summary>
<code class="language-html">?attributes[]=first_name&updated_since=2022-12-24T08:15:30</code>
will yield 3 employees, ones that had their <code>first_name</code> changed since <code>2022-12-24T08:15:30</code>:
</summary>
<p><pre class="prettyprint"><code language="json" class="language-json">
{
"success": true,
"metadata": {
"total_elements": 3,
"current_page": 0,
"total_pages": 3
},
"offset": 0,
"limit": 1,
"data": [
{
"type": "Employee",
"attributes": {
"id": {
"label": "ID",
"value": 1,
"type": "integer",
"universal_id": "id"
},
"first_name": {
"label": "First name",
"value": "Alexander",
"type": "standard",
"universal_id": "first_name"
}
}
}
]
}
</code></pre></p>
</details>
</details>
example: "2022-12-24T08:15:30"
schema:
type: string
example: 2022-12-24T08:15:30
description: List Company Employees
summary: List Employees
responses:
"200":
description: ""
content:
application/json:
schema:
$ref: "#/components/schemas/EmployeesResponse"
post:
security:
- BearerAuth: []
tags:
- Employees
summary: Create an Employee
description: >
Creates a new employee. If the employee's status is not provided, it will be set based on the `hire_date` value - if it is in the past, status will be `active`, otherwise `onboarding`. This endpoint responds with the `id` of the created employee in case of success.
requestBody:
content:
application/json:
schema:
type: object
properties:
employee:
type: object
properties:
email:
type: string
example: "[email protected]"
description: The e-mail field is required for the employee creation. Updating of this field is not currently supported.
first_name:
type: string
example: "John"
last_name:
type: string
example: "Dou"
preferred_name:
type: string
example: "John Dou"
gender:
type: string
example: male
position:
type: string
example: developer
subcompany:
type: string
description: The subcompany employee belongs to. Should be predefined in Personio. Otherwise will be ignored with showing meta error in the response.
example: ACME
department:
type: string
description: The department employee belongs to. Should be predefined in Personio. Otherwise will be ignored with showing meta error in the response.
example: IT
office:
type: string
description: The office employee belongs to. Should be predefined in Personio. Otherwise will be ignored with showing meta error in the response.
example: Madrid
hire_date:
type: string
example: '2020-01-31'
format: date
description: "Employee hire date. Format: \"yyyy-mm-dd\". If `status` is not provided, it will be set to `active` if the hire date is in the past, or to `onboarding` if it's in the future."
pattern: ^\d{4}-\d{2}-\d{2}$
weekly_working_hours:
type: number
example: 40
status:
type: string
description: "Status of the employee. Overrides the status determined based on the value of `hire_date`."
example: "active"
"supervisor_id":
description: Employee ID of the Supervisor to be assigned. It needs to belong to a current existing employee, otherwise an error will be returned. If not present, no supervisor will be assigned.
type: number
example: 5
custom_attributes:
type: object
properties:
dynamic_{{ field uid }}:
type: string
description: Dynamic field, represented by unique id.
example: "German"
required:
- email
- first_name
- last_name
application/x-www-form-urlencoded:
schema:
type: object
properties:
"employee[email]":
description: Employee email
type: string
"employee[first_name]":
description: Employee first name
type: string
"employee[last_name]":
description: Employee last name
type: string
"employee[preferred_name]":
description: Employee preferred name
type: string
"employee[gender]":
description: Employee gender
type: string
enum:
- male
- female
- diverse
"employee[position]":
description: Employee position
type: string
"employee[department]":
description: Employee department
type: string
"employee[hire_date]":
type: string
example: '2020-01-31'
format: date
description: "Employee hire date. Format: yyyy-mm-dd"
pattern: ^\d{4}-\d{2}-\d{2}$
"employee[weekly_working_hours]":
description: Employee weekly working hours
type: number
"employee[supervisor_id]":
description: Employee ID of the Supervisor to be assigned. It needs to belong to a current existing employee, otherwise an error will be returned. If not present, no supervisor will be assigned.
type: number
"employee[status]":
description: Employee status
type: string
enum:
- onboarding
- active
- leave
- inactive
required:
- employee[email]
- employee[first_name]
- employee[last_name]
responses:
"200":
description: Successful creation of a employee
content:
application/json:
schema:
allOf:
- $ref: "#/components/schemas/EmployeeCreatedResponse"
examples:
response:
value:
success: true
data:
id: 81723
message: "success"
"422":
description: Employee creation failed due to invalid payload
content:
application/json:
schema:
allOf:
- $ref: "#/components/schemas/EmployeeCreationErrorResponse"
examples:
response:
value:
success: false
error:
code: 422
message: "Supervisor with ID 1 not found"
/company/employees/{employee_id}:
parameters:
- $ref: "#/components/parameters/XPersonioPartnerID"
- $ref: "#/components/parameters/XPersonioAppID"
patch:
security:
- BearerAuth: []
tags:
- Employees
summary: Update Employee by ID
description: >
Updates an existing employee. Note: Only the fields that are listed in the body example
are updatable. Attributes that are not part of the sample request body but are present
inside the request are ignored. It's not possible to update the Email field.
parameters:
- name: employee_id
in: path
required: true
description: Numeric `id` of the employee
schema:
type: integer
format: int32
requestBody:
content:
application/json:
schema:
type: object
properties:
employee:
type: object
properties:
first_name:
type: string
example: "John"
last_name:
type: string
example: "Dou"
preferred_name:
type: string
example: "John Dou"
gender:
type: string
example: male
position:
type: string
example: developer
subcompany:
type: string
description: The subcompany employee belongs to. Should be predefined in Personio. Otherwise will be ignored with showing meta error in the response.
example: ACME
department:
type: string
description: The department employee belongs to. Should be predefined in Personio. Otherwise will be ignored with showing meta error in the response.
example: IT
office:
type: string
description: The office employee belongs to. Should be predefined in Personio. Otherwise will be ignored with showing meta error in the response.
example: Madrid
hire_date:
type: string
example: '2020-01-31'
format: date
description: "Employee hire date. Format: \"yyyy-mm-dd\". Update of the `hire_date` will not update employee status on its own (for that you'll need to update the `status` field)"
pattern: ^\d{4}-\d{2}-\d{2}$
weekly_working_hours:
type: number
example: 40
status:
type: string
description: "Status of the employee."
example: "active"
supervisor_id:
type: number
description: Employee ID of the Supervisor to be assigned. It needs to belong to a current existing employee and not the same as the one of the employee being updated, otherwise an error will be returned. If sent as null, will unset the employee's supervisor.
example: 5
custom_attributes:
type: object
properties:
dynamic_{{ field uid }}:
type: string
description: Dynamic field, represented by unique id.
example: "German"
application/x-www-form-urlencoded:
schema:
type: object
properties:
"employee[first_name]":
description: Employee first name
type: string
"employee[last_name]":
description: Employee last name
type: string
"employee[preferred_name]":
description: Employee preferred name
type: string
"employee[gender]":
description: Employee gender
type: string
enum:
- male
- female
- diverse
"employee[position]":
description: Employee position
type: string
"employee[department]":
description: Employee department
type: string
"employee[hire_date]":
type: string
example: '2020-01-31'
format: date
description: "Employee hire date. Format: yyyy-mm-dd"
pattern: ^\d{4}-\d{2}-\d{2}$
"employee[weekly_working_hours]":
description: Employee weekly working hours
type: number
"employee[supervisor_id]":
description: Employee ID of the Supervisor to be assigned. It needs to belong to a current existing employee and not the same as the one of the employee being updated, otherwise an error will be returned. If sent as null, will unset the employee's supervisor.
type: number
"employee[status]":
description: Employee status
type: string
enum:
- onboarding
- active
- leave
- inactive
responses:
"200":
description: Employee is updated
content:
application/json:
schema:
$ref: "#/components/schemas/EmployeeUpdatedResponse"
"422":
description: Employee update failed due to invalid payload
content:
application/json:
schema:
$ref: "#/components/schemas/EmployeeUpdateErrorResponse"
get:
security:
- BearerAuth: []
tags:
- Employees
description: Get Employee by ID
summary: Get Employee by ID
parameters:
- name: employee_id
in: path
required: true
description: Numeric `id` of the employee
schema:
type: integer
format: int32
responses:
"200":
description: ""
content:
application/json:
schema:
$ref: "#/components/schemas/EmployeeResponse"
examples:
response:
value:
success: true
data:
type: Employee
attributes:
id:
label: ID
value: 1
type: integer
universal_id: id
first_name:
label: First name
value: Alexander
type: standard
universal_id: first_name
last_name:
label: Last name
value: Bergmann
type: standard
universal_id: last_name
preferred_name:
label: Name (preferred)
value: Alexander Bergmann
type: standard
universal_id: preferred_name
email:
label: Email
value: [email protected]
type: standard
universal_id: email
gender:
label: Gender
value: male
type: standard
universal_id: gender
status:
label: Status
value: active
type: standard
universal_id: status
position:
label: Position
value: CTO
type: standard
universal_id: position
supervisor:
label: Supervisor
value:
type: Employee
attributes:
id:
label: ID
value: 2
type: integer
universal_id: id
type: standard
universal_id: supervisor
employment_type:
label: Employment type
value: external
type: standard
universal_id: employment_type
weekly_working_hours:
label: Weekly hours
value: '40'
type: standard
universal_id: weekly_working_hours
hire_date:
label: Hire date
value: 2014-11-09T00:00:00+01:00
type: date
universal_id: hire_date
contract_end_date:
label: Contract ends
value: null
type: date
universal_id: contract_end_date
termination_date:
label: Termination date
value: null
type: date
universal_id: termination_date
termination_type:
label: Termination type
value: null
type: standard
universal_id: termination_type
termination_reason:
label: Termination reason
value: null
type: standard
universal_id: termination_reason
probation_period_end:
label: Probation period end
value: null
type: date
universal_id: probation_period_end
created_at:
label: created_at
value: '2017-05-23T09:49:03+02:00'
type: date
universal_id: created_at
last_modified_at:
label: Last modified
value: '2020-11-18T17:33:55+01:00'
type: date
universal_id: last_modified_at
subcompany:
label: Subcompany
value:
type: Subcompany
attributes:
id: 7033
name: CS Demo GmbH
type: standard
universal_id: subcompany
office:
label: Office
value:
type: Office
attributes:
id: 131014
name: Munich
type: standard
universal_id: office
department:
label: Department
value:
type: Department
attributes:
id: 281521
name: Customer Support
type: standard
universal_id: department
cost_centers:
label: Cost center
value:
- type: CostCenter
attributes:
id: 82957
name: Cost center 1
percentage: 100
type: standard
universal_id: cost_centers
holiday_calendar:
label: Public holidays
value:
type: HolidayCalendar
attributes:
id: 2
name: Deutschland (Bayern) Feiertage
country: DE
state: Bayern
type: standard
universal_id: holiday_calendar
absence_entitlement:
label: Absence entitlement
value:
- type: TimeOffType
attributes:
id: 113437
name: Paid vacation
category: paid_vacation
entitlement: 24
type: standard
universal_id: absence_entitlement
work_schedule:
label: Work schedule
value:
type: WorkSchedule
attributes:
id: 97188
name: Full-time, 40 hours without time tracking, (mon,tue,wed,thu,fri)
valid_from:
monday: '08:00'
tuesday: '08:00'
wednesday: '08:00'
thursday: '08:00'
friday: '08:00'
saturday: '00:00'
sunday: '00:00'
type: standard
universal_id: work_schedule
fix_salary:
label: Fix salary
value: 3000
type: decimal
universal_id: fix_salary
currency: EUR
fix_salary_interval:
label: Salary interval
value: monthly
type: standard
universal_id: fix_salary_interval
hourly_salary:
label: Hourly salary
value: 0
type: decimal
universal_id: hourly_salary
currency: EUR
last_working_day:
label: Last day of work
value:
type: date
universal_id: last_working_day
profile_picture:
label: Profile Picture
value: https://api.personio.de/v1/company/employees/1132888/profile-picture
type: standard
universal_id: profile_picture
team:
label: Team
value:
type: Team
attributes:
id: 59026
name: T_X
type: standard
universal_id: team
dynamic_24407:
label: Titel
value: Dr
universal_id: null
type: standard
dynamic_21827:
label: IBAN
value: DE98 8989 9898 0000 8989 00
universal_id: iban
type: standard
dynamic_33400:
label: Anniversary Date
value: 2021-01-01
universal_id: null
type: date
dynamic_180883:
label: Birthday
value: 1983-08-18
universal_id: date_of_birth
type: date
"404":
description: ""
content:
application/json:
schema:
$ref: "#/components/schemas/Employee404ErrorResponse"
examples:
response:
value:
success: false
error:
code: 404
message: 'Es ist ein Problem aufgetreten '
/company/employees/{employee_id}/absences/balance:
parameters:
- $ref: "#/components/parameters/XPersonioPartnerID"
- $ref: "#/components/parameters/XPersonioAppID"
get:
security:
- BearerAuth: []
tags:
- Employees
description: Retrieve the absence balance for a specific employee
summary: Get Absence Balance for Employee
parameters:
- name: employee_id
in: path
required: true
description: Numeric `id` of the employee
schema:
type: integer
format: int32
responses:
"200":
description: ""
content:
application/json:
schema:
$ref: "#/components/schemas/EmployeeAbsenceBalance"
"404":
description: ""
content:
application/json:
schema:
$ref: "#/components/schemas/Employee404ErrorResponse"
examples:
response:
value:
success: false
error:
code: 404
message: 'Es ist ein Problem aufgetreten '
/company/employees/custom-attributes:
get:
security:
- BearerAuth: []
tags:
- Employees
description: "This endpoint is an alias for `/company/employees/attributes`."
summary: List Allowed Custom Attributes
parameters:
- $ref: "#/components/parameters/XPersonioPartnerID"
- $ref: "#/components/parameters/XPersonioAppID"
responses:
"200":
description: "Please refer to `/company/employees/attributes`"
/company/employees/attributes:
get:
security:
- BearerAuth: []
tags:
- Employees
description: Lists all the allowed atrributes per API credentials including custom (dynamic) attributes.
summary: List Allowed Attributes
parameters:
- $ref: "#/components/parameters/XPersonioPartnerID"
- $ref: "#/components/parameters/XPersonioAppID"
responses:
"200":
description: ""
content:
application/json:
examples:
response:
value:
success: true
data:
- key: first_name
label: First Name
type: standard
universal_id: first_name
- key: last_name
label: Last Name
type: standard
universal_id: last_name
- key: dynamic_1
label: IBAN
type: standard
universal_id: iban
/company/employees/{employee_id}/profile-picture/{width}:
parameters:
- $ref: "#/components/parameters/XPersonioPartnerID"
- $ref: "#/components/parameters/XPersonioAppID"
get:
security:
- BearerAuth: []
tags:
- Employees
description: "Show employee's profile picture. If profile picture is missing, the 404 error will be thrown. The `Profile Picture` attribute has to be whitelisted."
summary: Get Employee Profile Picture
parameters:
- name: employee_id
in: path
required: true
description: Numeric `id` of the employee
schema:
type: integer
format: int32
- name: width
in: path
required: true
description: Width of the image. Default is original size
schema:
type: integer
format: int32
responses:
"200":
description: OK
content:
image/png:
schema:
type: string
format: binary
"404":
description: "When the employee doesn't exist or employee doesn't have profile picture set or Profile Picture attribute is not whitelisted, this error occurs."
content:
application/json:
schema:
$ref: "#/components/schemas/Employee404ErrorResponse"
examples:
response:
value:
success: false
error:
code: 404
message: 'Etwas ist schiefgelaufen ...'
/company/attendances:
parameters:
- $ref: "#/components/parameters/XPersonioPartnerID"
- $ref: "#/components/parameters/XPersonioAppID"
get:
security:
- BearerAuth: []
tags:
- Attendances
description: Fetch attendance data for the company employees. The result can be `paginated` and `filtered` by period, the date and/or time they were updated, and/or specific employee/employees. The result contains a list of attendances.
summary: List Attendances
parameters:
- name: start_date
in: query
required: true
description: First day of the period to be queried. It is inclusive, so the day specified as start_date will also be considered on the results
schema:
type: string
format: date
- name: end_date
in: query
required: true
description: Last day of the period to be queried. It is inclusive, so the day specified as end_date will also be considered on the results.
schema:
type: string
format: date
- name: updated_from
in: query
required: false
description: Datetime from when the queried periods have been updated. Same format as updated_at.
It is inclusive, so the day specified as updated_from will also be considered on the results.
Can be just the date, or the date and the time, with or without the timezone.
schema:
type: string
format: datetime
- name: updated_to
in: query
required: false
schema:
type: string
format: datetime
description: Datetime until when the queried periods have been updated. Same format as updated_at.
It is inclusive, so the day specified as updated_to will also be considered on the results.
Can be just the date, or the date and the time, with or without the timezone.
- name: includePending
in: query
required: false
description: Returns AttendancePeriods with a status of pending, rejected and confirmed. For pending periods, the end_date attribute is nullable. The status of each period is included in the response.
schema:
type: boolean
- name: employees[]
in: query
required: false
description: A list of Personio employee ID's to filter the results. The result filters including only attendances of provided employees.
explode: true
schema:
type: array
items:
type: integer
example: ?employees[]=1&employees[]=2
allowReserved: true
- name: limit
in: query
required: false
description: Pagination attribute to limit how many attendances are per page
schema:
type: integer
minimum: 1
default: 200
- name: offset
in: query
required: false
description: The offset from the first record that would be returned. With 3 results [A, B, C] and an offset of 1, the following two results will be returned [B, C].
schema:
type: integer
minimum: 0
default: 0
responses:
"200":