-
Notifications
You must be signed in to change notification settings - Fork 85
Expand file tree
/
Copy pathopenapi.yaml
More file actions
4943 lines (4936 loc) · 173 KB
/
openapi.yaml
File metadata and controls
4943 lines (4936 loc) · 173 KB
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.2
info:
title: Konnect Identity
version: 3.0.1
description: The management API for Kong Konnect Identity resources.
contact:
name: Kong
url: 'https://konghq.com'
x-oas-source: kong/platform-api@a3242e0831b3701ebb62066c39c05da0ce00bee8
x-oas-source-link: 'https://github.com/Kong/platform-api/commit/a3242e0831b3701ebb62066c39c05da0ce00bee8'
servers:
- url: 'https://global.api.konghq.com/v3'
description: Global Base URL
paths:
/organizations/impersonation:
get:
operationId: get-impersonation-settings
summary: Get Impersonation Settings
description: 'Returns Impersonation Settings, which determines if user impersonation is allowed for an organization.'
responses:
'200':
$ref: '#/components/responses/GetImpersonationSettingsResponse'
'401':
$ref: '#/components/responses/IdentityUnauthenticated'
'404':
$ref: '#/components/responses/IdentityNotFound'
tags:
- Impersonation Settings
patch:
operationId: update-impersonation-settings
summary: Update Impersonation Settings
description: Updates Impersonation Settings.
requestBody:
$ref: '#/components/requestBodies/UpdateImpersonationSettingsRequest'
responses:
'200':
$ref: '#/components/responses/UpdateImpersonationSettingsResponse'
'400':
$ref: '#/components/responses/IdentityBadRequest'
'401':
$ref: '#/components/responses/IdentityUnauthenticated'
'403':
$ref: '#/components/responses/Unauthorized'
'404':
$ref: '#/components/responses/IdentityNotFound'
tags:
- Impersonation Settings
/authentication-settings:
get:
operationId: get-authentication-settings
summary: Get Auth Settings
description: 'Returns authentication configuration, which determines how users can log in and how they are assigned to teams.'
responses:
'200':
$ref: '#/components/responses/AuthenticationSettings'
'401':
$ref: '#/components/responses/IdentityUnauthenticated'
tags:
- Auth Settings
patch:
operationId: update-authentication-settings
summary: Update Auth Settings
description: Updates authentication configuration.
requestBody:
$ref: '#/components/requestBodies/UpdateAuthenticationSettings'
responses:
'200':
$ref: '#/components/responses/AuthenticationSettings'
'400':
$ref: '#/components/responses/IdentityBadRequest'
'401':
$ref: '#/components/responses/IdentityUnauthenticated'
'403':
$ref: '#/components/responses/Unauthorized'
tags:
- Auth Settings
/invites:
post:
operationId: invite-user
summary: Invite User
description: 'Sends an invitation email to invite a user to the Konnect organization. The email contains a link with a one time token to accept the invitation. Upon accepting the invitation, the user is directed to https://cloud.konghq.com/login to complete registration.'
requestBody:
$ref: '#/components/requestBodies/InviteUser'
responses:
'201':
description: Created
'400':
$ref: '#/components/responses/IdentityBadRequest'
'409':
$ref: '#/components/responses/IdentityConflict'
'429':
$ref: '#/components/responses/RateLimited'
tags:
- Invites
/identity-providers:
get:
operationId: get-identity-providers
summary: List Identity Providers
description: |
Retrieves the identity providers available within the organization. This operation provides information about
various identity providers for SAML or OIDC authentication integrations.
parameters:
- name: filter
in: query
description: Filter identity providers returned in the response.
required: false
schema:
type: object
properties:
type:
$ref: '#/components/schemas/StringFieldEqualsFilter'
style: deepObject
responses:
'200':
$ref: '#/components/responses/IdentityProviders'
'401':
$ref: '#/components/responses/IdentityUnauthenticated'
'403':
$ref: '#/components/responses/IdentityPermissionDenied'
tags:
- Auth Settings
post:
operationId: create-identity-provider
summary: Create Identity Provider
description: |
Creates a new identity provider. This operation allows the creation of a new identity provider for
authentication purposes.
requestBody:
$ref: '#/components/requestBodies/CreateIdentityProviderRequest'
responses:
'201':
$ref: '#/components/responses/IdentityProvider'
'400':
$ref: '#/components/responses/IdentityBadRequest'
'401':
$ref: '#/components/responses/IdentityUnauthenticated'
'403':
$ref: '#/components/responses/CreateIdentityProviderPermissionDenied'
'409':
$ref: '#/components/responses/Conflict'
tags:
- Auth Settings
'/identity-providers/{id}':
parameters:
- name: id
in: path
description: ID of the identity provider.
required: true
schema:
type: string
format: uuid
example: d32d905a-ed33-46a3-a093-d8f536af9a8a
get:
operationId: get-identity-provider
summary: Get Identity Provider
description: |
Retrieves the configuration of a single identity provider. This operation returns information about a
specific identity provider's settings and authentication integration details.
responses:
'200':
$ref: '#/components/responses/IdentityProvider'
'400':
$ref: '#/components/responses/IdentityBadRequest'
'401':
$ref: '#/components/responses/IdentityUnauthenticated'
'403':
$ref: '#/components/responses/IdentityPermissionDenied'
'404':
$ref: '#/components/responses/IdentityNotFound'
tags:
- Auth Settings
patch:
operationId: update-identity-provider
summary: Update Identity Provider
description: |
Updates the configuration of an existing identity provider. This operation allows modifications to be made
to an existing identity provider's configuration.
requestBody:
$ref: '#/components/requestBodies/UpdateIdentityProviderRequest'
responses:
'200':
$ref: '#/components/responses/IdentityProvider'
'400':
$ref: '#/components/responses/IdentityBadRequest'
'401':
$ref: '#/components/responses/IdentityUnauthenticated'
'403':
$ref: '#/components/responses/IdentityPermissionDenied'
'404':
$ref: '#/components/responses/IdentityNotFound'
'409':
$ref: '#/components/responses/Conflict'
tags:
- Auth Settings
delete:
operationId: delete-identity-provider
summary: Delete Identity Provider
description: |
Deletes an existing identity provider configuration. This operation removes a specific identity provider
from the organization.
responses:
'204':
description: No Content
'400':
$ref: '#/components/responses/IdentityBadRequest'
'401':
$ref: '#/components/responses/IdentityUnauthenticated'
'403':
$ref: '#/components/responses/IdentityPermissionDenied'
'404':
$ref: '#/components/responses/IdentityNotFound'
tags:
- Auth Settings
/identity-provider:
get:
operationId: get-idp-configuration
summary: Get the IdP Configuration
description: Fetch the IdP configuration.
responses:
'200':
$ref: '#/components/responses/IdPConfiguration'
'400':
$ref: '#/components/responses/IdentityBadRequest'
'401':
$ref: '#/components/responses/IdentityUnauthenticated'
'403':
$ref: '#/components/responses/IdentityPermissionDenied'
'404':
$ref: '#/components/responses/IdentityNotFound'
tags:
- Auth Settings
patch:
operationId: update-idp-configuration
summary: Update IdP Configuration
description: Update the IdP configuration.
requestBody:
$ref: '#/components/requestBodies/UpdateIdPConfiguration'
responses:
'200':
$ref: '#/components/responses/IdPConfiguration'
'400':
$ref: '#/components/responses/IdentityBadRequest'
'401':
$ref: '#/components/responses/IdentityUnauthenticated'
'403':
$ref: '#/components/responses/Unauthorized'
tags:
- Auth Settings
/identity-provider/team-mappings:
put:
operationId: update-idp-team-mappings
summary: Update Team Mappings
description: Updates the IdP group to Konnect team mapping.
requestBody:
$ref: '#/components/requestBodies/UpdateTeamMappings'
responses:
'200':
$ref: '#/components/responses/TeamMappingCollection'
'400':
$ref: '#/components/responses/IdentityBadRequest'
'401':
$ref: '#/components/responses/IdentityPermissionDenied'
'404':
$ref: '#/components/responses/IdentityNotFound'
'412':
$ref: '#/components/responses/PreconditionFailed'
tags:
- Auth Settings
get:
operationId: get-idp-team-mappings
summary: Get a Team Mapping
description: Fetch the IdP group to Konnect team mapping.
parameters:
- $ref: '#/components/parameters/PageSize'
- $ref: '#/components/parameters/PageNumber'
responses:
'200':
$ref: '#/components/responses/TeamMappingResponse'
'401':
$ref: '#/components/responses/IdentityUnauthenticated'
'403':
$ref: '#/components/responses/IdentityPermissionDenied'
'404':
$ref: '#/components/responses/IdentityNotFound'
'412':
$ref: '#/components/responses/PreconditionFailed'
tags:
- Auth Settings
/identity-provider/team-group-mappings:
get:
operationId: get-team-group-mappings
summary: Get a Team Group Mappings
description: |-
Retrieves the mappings between Konnect Teams and Identity Provider Groups.
Returns a 400 error if an Identity Provider has not yet been configured.
parameters:
- $ref: '#/components/parameters/PageSize'
- $ref: '#/components/parameters/PageNumber'
responses:
'200':
$ref: '#/components/responses/TeamGroupMappingCollection'
'400':
$ref: '#/components/responses/IdentityBadRequest'
'401':
$ref: '#/components/responses/IdentityUnauthenticated'
'403':
$ref: '#/components/responses/IdentityPermissionDenied'
tags:
- Auth Settings
patch:
operationId: patch-team-group-mappings
summary: Patch Mappings by Team ID
description: |-
Allows partial updates to the mappings between Konnect Teams and Identity Provider Groups.
The request body must be keyed on team ID. For a given team ID, the given group list is a
complete replacement. To remove all mappings for a given team, provide an empty group list.
Returns a 400 error if an Identity Provider has not yet been configured, or if a team ID in
the request body is not found or is not a UUID.
requestBody:
$ref: '#/components/requestBodies/PatchTeamGroupMappings'
responses:
'200':
$ref: '#/components/responses/TeamGroupMappingCollection'
'400':
$ref: '#/components/responses/IdentityBadRequest'
'401':
$ref: '#/components/responses/IdentityUnauthenticated'
'403':
$ref: '#/components/responses/IdentityPermissionDenied'
tags:
- Auth Settings
/roles:
get:
operationId: get-predefined-roles
summary: Get Predefined Roles
description: 'Retrieves the predefined, or system managed, roles.'
responses:
'200':
$ref: '#/components/responses/Roles'
'400':
$ref: '#/components/responses/IdentityBadRequest'
'401':
$ref: '#/components/responses/IdentityUnauthenticated'
tags:
- Roles
/teams:
get:
operationId: list-teams
summary: List Teams
description: Returns an array of team objects containing information about the Konnect Teams.
parameters:
- $ref: '#/components/parameters/PageSize'
- $ref: '#/components/parameters/PageNumber'
- name: filter
in: query
description: Filter teams returned in the response.
required: false
schema:
type: object
properties:
name:
$ref: '#/components/schemas/LegacyStringFieldFilter'
style: deepObject
responses:
'200':
$ref: '#/components/responses/TeamCollection'
'400':
$ref: '#/components/responses/IdentityBadRequest'
'404':
$ref: '#/components/responses/IdentityNotFound'
tags:
- Teams
post:
operationId: create-team
summary: Create Team
description: 'Creates a team in the Konnect Organization. '
requestBody:
$ref: '#/components/requestBodies/CreateTeam'
responses:
'201':
$ref: '#/components/responses/TeamSingle'
'400':
$ref: '#/components/responses/IdentityBadRequest'
'403':
$ref: '#/components/responses/IdentityPermissionDenied'
tags:
- Teams
'/teams/{teamId}/users':
parameters:
- name: teamId
in: path
description: ID of the team.
required: true
schema:
type: string
format: uuid
example: d32d905a-ed33-46a3-a093-d8f536af9a8a
get:
operationId: list-team-users
summary: List Team Users
description: Returns a paginated list of users that belong to the team specified in the path parameter.
parameters:
- $ref: '#/components/parameters/PageSize'
- $ref: '#/components/parameters/PageNumber'
- name: filter
in: query
description: Filter users returned in the response.
required: false
schema:
type: object
properties:
id:
$ref: '#/components/schemas/StringFieldEqualsFilter'
email:
$ref: '#/components/schemas/LegacyStringFieldFilter'
full_name:
$ref: '#/components/schemas/LegacyStringFieldFilter'
active:
$ref: '#/components/schemas/BooleanFieldFilter'
style: deepObject
responses:
'200':
$ref: '#/components/responses/UserCollection'
'400':
$ref: '#/components/responses/IdentityBadRequest'
'404':
$ref: '#/components/responses/IdentityNotFound'
tags:
- Team Membership
post:
operationId: add-user-to-team
summary: Add User
description: Adds a user to a team.
requestBody:
$ref: '#/components/requestBodies/AddUserToTeam'
responses:
'201':
description: Created
'400':
$ref: '#/components/responses/IdentityBadRequest'
'404':
$ref: '#/components/responses/IdentityNotFound'
'409':
$ref: '#/components/responses/IdentityConflict'
tags:
- Team Membership
'/teams/{teamId}':
parameters:
- name: teamId
in: path
description: The team ID
required: true
schema:
type: string
format: uuid
example: d32d905a-ed33-46a3-a093-d8f536af9a8a
get:
operationId: get-team
summary: Get a Team
description: Returns information about a team from a given team ID.
responses:
'200':
$ref: '#/components/responses/TeamSingle'
'400':
$ref: '#/components/responses/IdentityBadRequest'
'404':
$ref: '#/components/responses/IdentityNotFound'
tags:
- Teams
patch:
operationId: update-team
summary: Update Team
description: Updates an individual team.
requestBody:
$ref: '#/components/requestBodies/UpdateTeam'
responses:
'200':
$ref: '#/components/responses/TeamSingle'
'400':
$ref: '#/components/responses/IdentityBadRequest'
'404':
$ref: '#/components/responses/IdentityNotFound'
tags:
- Teams
delete:
operationId: delete-team
summary: Delete Team
description: Deletes an individual team. Returns 404 if the team is not found.
responses:
'204':
description: No Content
'400':
$ref: '#/components/responses/IdentityBadRequest'
'404':
$ref: '#/components/responses/IdentityNotFound'
tags:
- Teams
'/teams/{teamId}/users/{userId}':
parameters:
- name: userId
in: path
description: User ID
required: true
schema:
type: string
format: uuid
example: d32d905a-ed33-46a3-a093-d8f536af9a8a
- name: teamId
in: path
description: Team ID.
required: true
schema:
type: string
format: uuid
example: d32d905a-ed33-46a3-a093-d8f536af9a8a
delete:
operationId: remove-user-from-team
summary: Remove User
description: |-
Removes a user from a team.
If the user was removed, returns a 204 empty response. Returns 404 if the user or team were not found.
responses:
'204':
description: No Content
'400':
$ref: '#/components/responses/IdentityBadRequest'
'404':
$ref: '#/components/responses/IdentityNotFound'
tags:
- Team Membership
'/teams/{teamId}/assigned-roles':
parameters:
- name: teamId
in: path
description: The team ID
required: true
schema:
type: string
format: uuid
example: e81bc3e5-e9db-4764-b7dd-e81e39072cbe
get:
operationId: list-team-roles
summary: List Team Roles
description: Lists the roles belonging to a team. Returns 400 if any filter parameters are invalid.
parameters:
- name: filter
in: query
description: Filter roles returned in the response.
required: false
schema:
type: object
properties:
role_name:
$ref: '#/components/schemas/StringFieldEqualsFilter'
entity_type_name:
$ref: '#/components/schemas/StringFieldEqualsFilter'
style: deepObject
responses:
'200':
$ref: '#/components/responses/AssignedRoleCollection'
'400':
$ref: '#/components/responses/IdentityBadRequest'
'401':
$ref: '#/components/responses/IdentityUnauthenticated'
'403':
$ref: '#/components/responses/IdentityPermissionDenied'
'404':
$ref: '#/components/responses/IdentityNotFound'
tags:
- Roles
post:
operationId: teams-assign-role
summary: Assign Team Role
description: Assigns a role to a team. Returns 409 if role is already assigned.
requestBody:
$ref: '#/components/requestBodies/AssignRole'
responses:
'201':
$ref: '#/components/responses/AssignedRoleSingle'
'400':
$ref: '#/components/responses/IdentityBadRequest'
'401':
$ref: '#/components/responses/IdentityUnauthenticated'
'403':
$ref: '#/components/responses/IdentityPermissionDenied'
'404':
$ref: '#/components/responses/IdentityNotFound'
'409':
$ref: '#/components/responses/IdentityConflict'
tags:
- Roles
'/teams/{teamId}/assigned-roles/{roleId}':
parameters:
- name: teamId
in: path
description: The team ID.
required: true
schema:
type: string
format: uuid
example: e81bc3e5-e9db-4764-b7dd-e81e39072cbe
- name: roleId
in: path
description: The role ID.
required: true
schema:
type: string
format: uuid
example: 8350205f-a305-4e39-abe9-bc082a80091a
delete:
operationId: teams-remove-role
summary: Remove Team Role
description: Removes an assigned role from a team. Returns 404 if the requested team or assigned role were not found.
responses:
'204':
description: No Content
'400':
$ref: '#/components/responses/IdentityBadRequest'
'401':
$ref: '#/components/responses/IdentityUnauthenticated'
'403':
$ref: '#/components/responses/IdentityPermissionDenied'
'404':
$ref: '#/components/responses/IdentityNotFound'
tags:
- Roles
/users:
get:
operationId: list-users
summary: List Users
description: Returns a paginated list of user objects.
parameters:
- $ref: '#/components/parameters/PageSize'
- $ref: '#/components/parameters/PageNumber'
- name: filter
in: query
description: Filter users returned in the response.
required: false
schema:
type: object
properties:
id:
$ref: '#/components/schemas/StringFieldEqualsFilter'
email:
$ref: '#/components/schemas/LegacyStringFieldFilter'
full_name:
$ref: '#/components/schemas/LegacyStringFieldFilter'
active:
$ref: '#/components/schemas/BooleanFieldFilter'
style: deepObject
responses:
'200':
$ref: '#/components/responses/UserCollection'
'400':
$ref: '#/components/responses/IdentityBadRequest'
tags:
- Users
'/users/{userId}':
parameters:
- name: userId
in: path
description: The ID of the user being deleted.
required: true
schema:
type: string
format: uuid
example: d32d905a-ed33-46a3-a093-d8f536af9a8a
get:
operationId: get-user
summary: Get a User
description: Returns the user object for the user ID specified as a path parameter.
responses:
'200':
$ref: '#/components/responses/UserSingle'
'400':
$ref: '#/components/responses/IdentityBadRequest'
'404':
$ref: '#/components/responses/IdentityNotFound'
tags:
- Users
patch:
operationId: update-user
summary: Update User
description: Update an individual user.
requestBody:
$ref: '#/components/requestBodies/UpdateUser'
responses:
'200':
$ref: '#/components/responses/UserSingle'
'401':
$ref: '#/components/responses/IdentityUnauthenticated'
'403':
$ref: '#/components/responses/IdentityPermissionDenied'
'404':
$ref: '#/components/responses/IdentityNotFound'
tags:
- Users
delete:
operationId: delete-user
summary: Delete User
description: Deletes an individual user. Returns 404 if the requested user was not found.
responses:
'204':
description: No Content
'404':
$ref: '#/components/responses/IdentityNotFound'
tags:
- Users
'/users/{userId}/teams':
parameters:
- name: userId
in: path
description: The user ID.
required: true
schema:
type: string
format: uuid
example: d32d905a-ed33-46a3-a093-d8f536af9a8a
get:
operationId: list-user-teams
summary: List User Teams
description: Returns a paginated list of a teams that the user belongs to.
parameters:
- $ref: '#/components/parameters/PageSize'
- $ref: '#/components/parameters/PageNumber'
- name: filter
in: query
description: Filter teams returned in the response.
required: false
schema:
type: object
properties:
name:
$ref: '#/components/schemas/LegacyStringFieldFilter'
style: deepObject
responses:
'200':
$ref: '#/components/responses/TeamCollection'
'404':
$ref: '#/components/responses/IdentityNotFound'
tags:
- Team Membership
'/users/{userId}/assigned-roles':
parameters:
- name: userId
in: path
description: The user ID
required: true
schema:
type: string
format: uuid
example: e81bc3e5-e9db-4764-b7dd-e81e39072cbe
get:
operationId: list-user-roles
summary: List User Roles
description: Lists the roles assigned to a user. Returns 400 if any filter parameters are invalid.
parameters:
- name: filter
in: query
description: Filter roles returned in the response.
required: false
schema:
type: object
properties:
entity_id:
$ref: '#/components/schemas/StringFieldEqualsFilter'
role_name:
$ref: '#/components/schemas/StringFieldEqualsFilter'
entity_type_name:
$ref: '#/components/schemas/StringFieldEqualsFilter'
style: deepObject
responses:
'200':
$ref: '#/components/responses/AssignedRoleCollection'
'400':
$ref: '#/components/responses/IdentityBadRequest'
'404':
$ref: '#/components/responses/IdentityNotFound'
tags:
- Roles
post:
operationId: users-assign-role
summary: Assign Role
description: Assigns a role to a user. Returns 409 if role is already assigned.
requestBody:
$ref: '#/components/requestBodies/AssignRole'
responses:
'201':
$ref: '#/components/responses/AssignedRoleSingle'
'400':
$ref: '#/components/responses/IdentityBadRequest'
'401':
$ref: '#/components/responses/IdentityUnauthenticated'
'403':
$ref: '#/components/responses/IdentityPermissionDenied'
'404':
$ref: '#/components/responses/IdentityNotFound'
'409':
$ref: '#/components/responses/IdentityConflict'
tags:
- Roles
'/users/{userId}/assigned-roles/{roleId}':
parameters:
- name: userId
in: path
description: ID of the user.
required: true
schema:
type: string
format: uuid
example: e81bc3e5-e9db-4764-b7dd-e81e39072cbe
- name: roleId
in: path
description: ID of the role.
required: true
schema:
type: string
format: uuid
example: 8350205f-a305-4e39-abe9-bc082a80091a
delete:
operationId: users-remove-role
summary: Remove Role
description: Removes an assigned role from a user. Returns 404 if the requested user or assigned role were not found.
responses:
'204':
description: No Content
'400':
$ref: '#/components/responses/IdentityBadRequest'
'401':
$ref: '#/components/responses/IdentityUnauthenticated'
'404':
$ref: '#/components/responses/IdentityNotFound'
tags:
- Roles
/system-accounts:
get:
operationId: get-system-accounts
summary: List System Accounts
description: Returns an array of system accounts (SA) in the organization. Returns 400 if any filter parameters are invalid.
parameters:
- $ref: '#/components/parameters/PageSize'
- $ref: '#/components/parameters/PageNumber'
- name: filter
in: query
description: Filter system accounts returned in the response.
required: false
schema:
type: object
properties:
name:
$ref: '#/components/schemas/LegacyStringFieldFilter'
description:
$ref: '#/components/schemas/LegacyStringFieldFilter'
konnect_managed:
$ref: '#/components/schemas/BooleanFieldFilter'
style: deepObject
responses:
'200':
$ref: '#/components/responses/SystemAccountCollection'
'400':
$ref: '#/components/responses/IdentityBadRequest'
'401':
$ref: '#/components/responses/IdentityUnauthenticated'
'403':
$ref: '#/components/responses/Unauthorized'
tags:
- System Accounts
post:
operationId: post-system-accounts
summary: Create System Account
description: Creates a system account. Returns a 409 if a system account with the same name already exists.
requestBody:
$ref: '#/components/requestBodies/CreateSystemAccount'
responses:
'201':
$ref: '#/components/responses/SystemAccountSingle'
'401':
$ref: '#/components/responses/IdentityUnauthenticated'
'403':
$ref: '#/components/responses/Unauthorized'
'409':
$ref: '#/components/responses/IdentityConflict'
tags:
- System Accounts
'/system-accounts/{accountId}':
get:
operationId: get-system-accounts-id
summary: Get a System Account
description: Returns the system account (SA) for the SA ID specified as a path parameter.
responses:
'200':
$ref: '#/components/responses/SystemAccountSingle'
'401':
$ref: '#/components/responses/IdentityUnauthenticated'
'403':
$ref: '#/components/responses/Unauthorized'
'404':
$ref: '#/components/responses/IdentityNotFound'
tags:
- System Accounts
parameters:
- name: accountId
in: path
description: ID of the system account.
required: true
schema:
type: string
patch:
operationId: patch-system-accounts-id
summary: Update System Account
description: Updates the specified system account. Returns a 409 if the updated name is the same as another system account in the organization.
requestBody:
$ref: '#/components/requestBodies/UpdateSystemAccount'
responses:
'200':
$ref: '#/components/responses/SystemAccountSingle'
'401':
$ref: '#/components/responses/IdentityUnauthenticated'
'403':
$ref: '#/components/responses/Unauthorized'
'404':
$ref: '#/components/responses/IdentityNotFound'
'409':
$ref: '#/components/responses/IdentityConflict'
tags:
- System Accounts
delete:
operationId: delete-system-accounts-id
summary: Delete System Account
description: Deletes the specified system account. Returns 404 if the requested account was not found.
responses:
'204':
description: No Content
'401':
$ref: '#/components/responses/IdentityUnauthenticated'
'403':
$ref: '#/components/responses/Unauthorized'
'404':
$ref: '#/components/responses/IdentityNotFound'
tags:
- System Accounts
'/system-accounts/{accountId}/access-tokens':
get:
operationId: get-system-account-id-access-tokens
summary: List System Account Access Tokens
description: Returns the access tokens for the specified system account. Returns 400 if any filter parameters are invalid.
parameters:
- $ref: '#/components/parameters/PageSize'
- $ref: '#/components/parameters/PageNumber'
- name: filter
in: query
description: Filter access tokens returned in the response.
required: false
schema:
type: object
properties:
name:
$ref: '#/components/schemas/LegacyStringFieldFilter'
style: deepObject
responses:
'200':
$ref: '#/components/responses/SystemAccountAccessTokenCollection'
'400':
$ref: '#/components/responses/IdentityBadRequest'
'401':
$ref: '#/components/responses/IdentityUnauthenticated'
'403':
$ref: '#/components/responses/Unauthorized'
'404':
$ref: '#/components/responses/IdentityNotFound'
tags:
- System Accounts - Access Tokens
parameters:
- name: accountId
in: path
description: ID of the system account.
required: true
schema:
type: string
post:
operationId: post-system-accounts-id-access-tokens
summary: Create System Account Access Token
description: Creates an access token for the specified system account (SA). The access token can be used for authenticating API and CLI requests. The token will only be displayed once on creation. Returns a 409 if the system account already has a token with the same name.
requestBody:
$ref: '#/components/requestBodies/CreateSystemAccountAccessToken'
responses:
'201':
$ref: '#/components/responses/SystemAccountAccessTokenCreated'
'401':
$ref: '#/components/responses/IdentityUnauthenticated'
'403':
$ref: '#/components/responses/Unauthorized'
'404':
$ref: '#/components/responses/IdentityNotFound'
'409':
$ref: '#/components/responses/IdentityConflict'
tags:
- System Accounts - Access Tokens
'/system-accounts/{accountId}/access-tokens/{tokenId}':