-
Notifications
You must be signed in to change notification settings - Fork 5
/
openapi.yaml
5416 lines (5416 loc) · 167 KB
/
openapi.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.1
info:
title: Bob API
description: Access your employees data with the Bob API
version: 1.0.0
x-konfig-ignore:
object-with-no-properties: true
potential-incorrect-type: true
servers:
- description: Production
url: https://api.hibob.com/v1
- description: Sandbox
url: https://api.sandbox.hibob.com/v1
tags:
- name: People
- name: Tables
- name: Time off
- name: Payroll
- name: Metadata
- name: Documents
- name: Reports
- name: Tasks
- name: Custom Tables
- name: Hiring
- name: Onboarding
- name: Attendance
- name: Objects
paths:
/people/search:
post:
tags:
- People
summary: Search for employees
operationId: People_searchEmployees
security:
- Basic: []
description: >-
<b>Note:</b> Changes to this API are planned to take effect on May 31,
2024. Make sure to review all of the details in the <a
href='https://help.hibob.com/hc/en-us/articles/19726260483601'>Working
pattern API Changes</a> article in the help center.<br> <br>This API
returns a list of requested employees with requested fields. The data
is filtered based on the requested fields and access level of the
logged-in user. Only viewable categories are returned.<br />
<br><b>Note</b>: The values of the list fields represent the list item
ID and not the list item value. To obtain the corresponding list item
value, use the HiBob metadata API to determine the field list name.
Then, use the list item ID to locate the list item value. For more
information, see <a
href='https://apidocs.hibob.com/docs/how-to-work-with-lists-public-api'>How
to work with lists Public API</a>.
requestBody:
description: >-
Read request content that allows you to select fields and other
options
content:
application/json:
schema:
$ref: '#/components/schemas/ReadEmployeesRequestReference'
required: true
responses:
'200':
description: Requested employees.
content:
application/json:
schema:
$ref: '#/components/schemas/Employees'
default:
description: Unexpected error.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/people:
get:
tags:
- People
summary: Read all company employees
operationId: People_listEmployees
security:
- Basic: []
description: >-
<b>Note:</b> Deprecated at the end of March 2024. Please use
<b>/people/search</b> ("Search for employees") instead. <br/><br/> This
returns a list of all active employees. The data is filtered based on
the access level of the logged-in user. Only viewable categories are
returned.<br /><br> <b>Note</b>: The values of the list fields represent
the list item ID and not the list item value. To obtain the
corresponding list item value, use the HiBob metadata API to determine
the field list name. Then, use the list item ID to locate the list item
value. For more information, see <a
href='https://apidocs.hibob.com/docs/how-to-work-with-lists-public-api'>How
to work with lists Public API</a>.
parameters:
- description: Should include inactive employees.
name: showInactive
in: query
schema:
type: boolean
- description: >-
Whether to supply humanReadable values in JSON instead of
machine-readable format (default).
name: humanReadable
in: query
schema:
type: boolean
default: false
- description: >-
Whether to include the additional "humanReadable" JSON node in the
response.
name: includeHumanReadable
in: query
schema:
type: boolean
default: false
responses:
'200':
description: All employees.
content:
application/json:
schema:
$ref: '#/components/schemas/Employees'
default:
description: Unexpected error.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
deprecated: true
post:
tags:
- People
summary: Create company employee.
operationId: People_createEmployeeRecord
security:
- Basic: []
description: >-
<b>Note:</b> Changes to this API are planned to take effect on May 31,
2024. Make sure to review all of the details in the <a
href='https://help.hibob.com/hc/en-us/articles/19726260483601'>Working
pattern API Changes</a> article in the help center.<br> <br>This
creates a new employee record in Bob. You can include only the fields
listed in the [Fields Metadata
API](https://apidocs.hibob.com/reference/get_company-people-fields).
<br /><br><b>Note</b>
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/CreateEmployeeRequest'
required: true
responses:
'200':
description: Employee
content:
application/json:
schema:
$ref: '#/components/schemas/Employee'
x-codegen-request-body-name: body
/people/{identifier}:
post:
tags:
- People
summary: Read company employee fields by employee ID.
operationId: People_readEmployeeFields
security:
- Basic: []
description: >-
<b>Note:</b> Changes to this API are planned to take effect on May 31,
2024. Make sure to review all of the details in the <a
href='https://help.hibob.com/hc/en-us/articles/19726260483601'>Working
pattern API Changes</a> article in the help center.<br> <br>Returns the
employee's fields by the specified ID or email.<br /><br><b>Note</b>:
The values of the list fields represent the list item ID and not the
list item value. To obtain the corresponding list item value, use the
HiBob metadata API to determine the field list name. Then, use the list
item ID to locate the list item value. For more information, see <a
href='https://apidocs.hibob.com/docs/how-to-work-with-lists-public-api'>How
to work with lists Public API</a>.
parameters:
- description: employee ID or email
name: identifier
in: path
required: true
schema:
type: string
format: string
requestBody:
description: >-
Read request content that allows you to select fields and other
options
content:
application/json:
schema:
$ref: '#/components/schemas/ReadSingleEmployeeRequestReference'
responses:
'200':
description: Employee
content:
application/json:
schema:
$ref: '#/components/schemas/Employees'
default:
description: Unexpected error.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
get:
tags:
- People
summary: Read company employee by ID.
operationId: People_readEmployeeById
security:
- Basic: []
description: >-
<b>Note:</b> Deprecated at the end of March 2024. Please use <b>POST
/people/{identifier}</b> ("Read company employee fields by ID.")
instead. <br/><br/> Returns the employee by the specified ID.<br
/><br><b>Note</b>: The values of the list fields represent the list item
ID and not the list item value. To obtain the corresponding list item
value, use the HiBob metadata API to determine the field list name.
Then, use the list item ID to locate the list item value. For more
information, see <a
href='https://apidocs.hibob.com/docs/how-to-work-with-lists-public-api'>How
to work with lists Public API</a>.
parameters:
- description: employee id
name: identifier
in: path
required: true
schema:
type: string
format: string
- description: >-
Whether to supply fields (paths) instead of empty list as a default
in order to not exceed data permitted.
name: fields
in: query
required: true
schema:
type: array
items:
type: string
- description: >-
Whether to supply humanReadable values in JSON instead of
machine-readable (default) format.
name: humanReadable
in: query
schema:
type: boolean
default: false
- description: >-
Whether to include the additional "humanReadable" JSON node in the
response.
name: includeHumanReadable
in: query
schema:
type: boolean
default: false
responses:
'200':
description: Employee
content:
application/json:
schema:
$ref: '#/components/schemas/Employees'
default:
description: Unexpected error.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
deprecated: true
put:
tags:
- People
summary: Update company employee.
operationId: People_updateEmployeeRecord
security:
- Basic: []
description: >-
<b>Note:</b> Changes to this API are planned to take effect on May 31,
2024. Make sure to review all of the details in the <a
href='https://help.hibob.com/hc/en-us/articles/19726260483601'>Working
pattern API Changes</a> article in the help center.<br> <br>This
updates the employee record in Bob. You can include only the fields
listed in the [Fields Metadata
API](https://apidocs.hibob.com/reference/get_company-people-fields)
where historical is equal to false. <br /><br><b>Note</b>
parameters:
- description: Employee ID.
name: identifier
in: path
required: true
schema:
type: string
format: string
requestBody:
description: Use Fields Metadata API for available field definitions
content:
application/json:
schema:
$ref: '#/components/schemas/PeopleUpdateEmployeeRecordRequest'
required: true
responses:
'200':
description: Employee updated successfully.
content: {}
'304':
description: If employee data not modified.
content: {}
x-codegen-request-body-name: body
/employees/{identifier}/uninvite:
post:
tags:
- People
summary: Revoke access to Bob for an employee.
operationId: People_revokeAccessToEmployee
security:
- Basic: []
parameters:
- description: employee id
name: identifier
in: path
required: true
schema:
type: string
format: string
responses:
'200':
description: Revoke access successful.
content: {}
default:
description: Unexpected error.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/employees/{identifier}/terminate:
post:
tags:
- People
summary: Terminate company employee.
operationId: People_terminateEmployee
security:
- Basic: []
description: >-
This changes the employee’s status to Terminated according to specified
termination date. <br />
parameters:
- description: Employee ID.
name: identifier
in: path
required: true
schema:
type: string
format: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/EmployeeTermination'
required: true
responses:
'200':
description: Termination entry added successfully.
content: {}
x-codegen-request-body-name: body
/onboarding/wizards:
get:
tags:
- Onboarding
summary: Get a summary of all onboarding wizards.
operationId: Onboarding_getWizardSummary
security:
- Basic: []
description: >-
Wizard info includes Wizard ID, name and description.<br /><b>Supported
user types:</b> Service.
responses:
'200':
description: Onboarding Wizards
content:
application/json:
schema:
$ref: '#/components/schemas/OnboardingWizards'
default:
description: Unexpected error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/employees/{employeeId}/invitations:
post:
tags:
- People
summary: Invite an employee with a welcome wizard ID.
operationId: People_inviteEmployeeWizard
security:
- Basic: []
parameters:
- description: Employee ID.
name: employeeId
in: path
required: true
schema:
type: string
format: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/InvitationByWizard'
required: true
responses:
'200':
description: Invitation submitted successfully.
content: {}
default:
description: Unexpected error.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
x-codegen-request-body-name: body
/employees/{employeeId}/start-date:
post:
tags:
- People
summary: Set or update an employee's start date.
operationId: People_setStartDate
security:
- Basic: []
parameters:
- description: employee ID
name: employeeId
in: path
required: true
schema:
type: string
format: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/StartDateUpdate'
required: true
responses:
'200':
description: Start date was set successfully.
content: {}
default:
description: Unexpected error.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
x-codegen-request-body-name: body
/company/reports:
get:
tags:
- Reports
summary: Read company reports
operationId: Reports_listAccessibleReports
security:
- Basic: []
description: >-
Returns a list of all the defined company reports. The data is filtered
based on the access level of the user. Only viewable categories are
returned.<br />
responses:
'200':
description: Company Reports
content:
application/json:
schema:
$ref: '#/components/schemas/Reports'
default:
description: Unexpected error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/company/reports/{reportId}/download:
get:
tags:
- Reports
summary: Download the report by ID
operationId: Reports_downloadById
security:
- Basic: []
description: >-
Returns a report data file in the specified format.<br /><b>Supported
user types:</b> Service.
parameters:
- description: Report ID
name: reportId
in: path
required: true
schema:
type: number
format: long
- description: File format
name: format
in: query
required: true
schema:
type: string
enum:
- csv
- xlsx
- json
- description: Should include info.
name: includeInfo
in: query
schema:
type: boolean
format: boolean
- description: >-
Requested language for the report columns in the format of locale
(e.g. fr-FR). If this is not provided, the user preferences locale
is used.
name: locale
in: query
schema:
type: string
format: string
- description: >-
Optional field. Only enforced when <i><b>format</b></i> is
<i>json</i>. <br> <b>If not sent:</b> supply machine-readable values
only. <br> <br> Possible values: <br> <br> <b>APPEND</b> - include
the additional "humanReadable" JSON node in the response. <br> <br>
<b>REPLACE</b> - supply humanReadable values in JSON instead of
machine-readable format. <br>
name: humanReadable
in: query
required: false
schema:
type: string
responses:
'200':
description: >-
Includes the report name and execution date in the report file. By
default this is set to True.
content:
application/json:
schema:
$ref: '#/components/schemas/ReportsDownloadByIdResponse'
default:
description: Unexpected error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/company/reports/{reportId}/download-async:
get:
tags:
- Reports
summary: Get the report download URL for polling
operationId: Reports_getDownloadUrl
security:
- Basic: []
description: >-
Returns the polling URL report file of the specified format under
"Location" in the response header.<br />
parameters:
- description: Report id
name: reportId
in: path
required: true
schema:
type: number
format: long
- description: File format
name: format
in: query
required: true
schema:
type: string
enum:
- csv
- xlsx
- description: Should include info
name: includeInfo
in: query
schema:
type: boolean
format: boolean
- description: >-
Requested language for the report columns in the format of the
locale (e.g. fr-FR). If this is not provided, the user preferences
locale is used.
name: locale
in: query
schema:
type: string
format: string
- description: >-
Optional field. Only enforced when <i><b>format</b></i> is
<i>json</i>. <br> <b>If not sent:</b> supply machine-readable values
only. <br> <br> Possible values: <br> <br> <b>APPEND</b> - include
the additional "humanReadable" JSON node in the response. <br> <br>
<b>REPLACE</b> - supply humanReadable values in JSON instead of
machine-readable format. <br>
name: humanReadable
in: query
required: false
schema:
type: string
responses:
'200':
description: Report URL under "Location" in the response header.
content: {}
default:
description: Unexpected error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/company/reports/download/{reportName}:
get:
tags:
- Reports
summary: Download report by file URL
operationId: Reports_downloadReportFile
security:
- Basic: []
description: >-
Returns the report data file when it is ready. If the file is not ready
yet the response will be 204. It will then have to try again.<br />(This
URL is the response of the previous API:
https://api.hibob.com/v1/company/reports/reportId/download-async)<br />
parameters:
- description: Report name
name: reportName
in: path
required: true
schema:
type: string
responses:
'200':
description: >-
Include the report name and execution date in the report file. This
defaults to true.
content:
application/json:
schema:
$ref: '#/components/schemas/ReportsDownloadReportFileResponse'
'204':
description: The file is not yet ready, please try again.
content: {}
default:
description: Unexpected error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/profiles:
get:
tags:
- People
summary: Read the public profile section of all active employees.
operationId: People_listActiveEmployees
security:
- Basic: []
description: >-
Returns the public section of all active employees of the logged-in
user company.<br /><br><b>Note</b>: The values of the list fields
represent the list item ID and not the list item value. To obtain the
corresponding list item value. Use the HiBob metadata API to determine
the field list name. Then, use the list item ID to locate the list item
value. For more information, see <a
href='https://apidocs.hibob.com/docs/how-to-work-with-lists-public-api'>How
to work with lists Public API</a>.
parameters:
- description: Optional field name to sort by. This defaults to firstName.
name: sortBy
in: query
schema:
type: string
format: string
responses:
'200':
description: Employee profiles
content:
application/json:
schema:
$ref: '#/components/schemas/EmployeesProfiles'
default:
description: Unexpected error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/avatars:
get:
tags:
- People
summary: Read avatar for an employee email
operationId: People_getEmailAvatar
security:
- Basic: []
description: Returns the avatar image URL of the employee.
parameters:
- description: Employee email.
name: email
in: query
schema:
type: string
format: string
responses:
'200':
description: URL of the emloyee avatar.
content: {}
/avatars/{employeeId}:
get:
tags:
- People
summary: Read avatar for an employee ID.
operationId: People_getAvatarUrl
security:
- Basic: []
description: Returns the avatar image URL of the employee.
parameters:
- description: employee id
name: employeeId
in: path
required: true
schema:
type: string
format: string
responses:
'200':
description: URL of the emloyee avatar.
content: {}
put:
tags:
- People
summary: Upload employee's avatar by image url
operationId: People_uploadEmployeeAvatarUrl
security:
- Basic: []
description: >-
Upload an employee's Avatar by providing a URL to the image to
upload.<br />
parameters:
- description: Employee ID.
name: employeeId
in: path
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/UploadAvatar'
required: true
responses:
'200':
description: Avatar Uploaded successfully
content: {}
x-codegen-request-body-name: body
/my/avatar:
get:
tags:
- People
summary: Read avatar for logged-in user
operationId: People_getAvatarUrl
security:
- Bearer: []
description: >-
Returns the avatar image URL of the logged-in user.<b>Supported user
types:</b> Employee.
responses:
'200':
description: URL of logged-in user avatar
content: {}
deprecated: true
/tasks:
get:
tags:
- Tasks
summary: Read all open tasks.
operationId: Tasks_getOpenTasks
security:
- Basic: []
responses:
'200':
description: All open tasks for this company.
content:
application/json:
schema:
$ref: '#/components/schemas/Tasks'
/my/tasks:
get:
tags:
- Tasks
summary: Read my tasks
operationId: Tasks_getEmployeeTasks
security:
- Bearer: []
description: <b>Supported user types:</b> Employee.
responses:
'200':
description: The logged-in user's tasks.
content:
application/json:
schema:
$ref: '#/components/schemas/Tasks'
deprecated: true
/tasks/people/{id}:
get:
tags:
- Tasks
summary: 'Read tasks of a specific employee '
operationId: Tasks_readEmployeeTasks
security:
- Basic: []
parameters:
- description: employee id
name: id
in: path
required: true
schema:
type: string
format: string
- description: >-
filter tasks by open / closed status. Not sending task_status will
return all tasks.
name: task_status
in: query
schema:
type: string
enum:
- open
- closed
responses:
'200':
description: All of a specific employee's open tasks.
content:
application/json:
schema:
$ref: '#/components/schemas/Tasks'
default:
description: Unexpected error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/tasks/{taskId}/complete:
post:
tags:
- Tasks
summary: Mark a task as complete
operationId: Tasks_completeTask
security:
- Basic: []
parameters:
- description: task id
name: taskId
in: path
required: true
schema:
type: string
format: string
responses:
'200':
description: Marks a task as complete.
content:
application/json:
schema:
$ref: '#/components/schemas/Tasks'
default:
description: Unexpected error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/people/{id}/email:
put:
tags:
- People
summary: Update an employee's email address.
operationId: People_updateEmail
security:
- Basic: []
description: >-
Change an employee's email address. If you cannot change the self email
an invitation will be sent to the new address to verify the email if the
employee is invited/active.<br />
parameters:
- description: employee id
name: id
in: path
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/ChangeEmail'
required: true
responses:
'200':
description: Invitation sent successfully.
content: {}
x-codegen-request-body-name: body
/company/named-lists:
get:
tags:
- Metadata
summary: Get all company lists
operationId: Metadata_getCompanyNamedLists
security:
- Basic: []
parameters:
- description: Whether to include archived items in the response.
name: includeArchived
in: query
schema:
type: boolean
default: false
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/Lists'
/company/named-lists/{listName}:
get:
tags:
- Metadata
summary: Get a specific company list by name.
operationId: Metadata_getNamedList
security:
- Basic: []
parameters:
- description: The internal name of the list.
name: listName
in: path
required: true
schema:
type: string
- description: Whether to include archived items in the response.
name: includeArchived
in: query
schema:
type: boolean
default: false
responses:
'200':
description: >-
Successful response. Please note that the item ID may be textual or
numeric depending on the list type.
content:
application/json:
schema:
$ref: '#/components/schemas/List'
'404':
description: If the list was not found.
content: {}
post:
tags:
- Metadata
summary: Add a new item to an existing list.
operationId: Metadata_addNewItemToNamedList
security:
- Basic: []
parameters:
- description: The internal name of the list.
name: listName
in: path
required: true
schema:
type: string
requestBody:
description: >-
The <b>parentId</b> attribute is optional and only applies to
hierarchy lists. When <b>parentId</b> is specified, the newly created
list item will be placed under the specific hierarchy parent node.
content:
application/json:
schema:
$ref: '#/components/schemas/NewListItem'
required: true
responses:
'200':
description: >-
A new item is created. Please note that the ID of the newly created
item may be textual or numeric depending on the list type.
content:
application/json:
schema:
$ref: '#/components/schemas/FlatListItemId'
'404':
description: If the list was not found.