-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsplit-admin-api-openapi.yml
More file actions
1371 lines (1371 loc) · 41.7 KB
/
Copy pathsplit-admin-api-openapi.yml
File metadata and controls
1371 lines (1371 loc) · 41.7 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.1.0
info:
title: Split Admin API
description: >-
The Split Admin API is a REST API that enables programmatic management of
workspaces (projects), environments, traffic types, attributes, users,
groups, API keys, and change requests within the Split platform (now Harness
Feature Management and Experimentation). The API uses resource-oriented URLs,
returns JSON responses, and requires Admin API keys for authentication.
All endpoints are prefixed with /internal/api/v2 on the api.split.io host.
version: '2.0'
contact:
name: Split Support
url: https://help.split.io
termsOfService: https://www.split.io/terms-of-service/
externalDocs:
description: Split Admin API Documentation
url: https://docs.split.io/reference/introduction
servers:
- url: https://api.split.io/internal/api/v2
description: Production Server
tags:
- name: API Keys
description: >-
Create and delete API keys for authenticating with the Split platform,
with configurable roles and scopes.
- name: Attributes
description: >-
Manage attributes used in targeting rules for feature flag definitions.
- name: Change Requests
description: >-
Manage change requests for controlled approval workflows when modifying
feature flag definitions.
- name: Environments
description: >-
Manage environments within workspaces for deploying and testing feature
flags across stages such as staging and production.
- name: Groups
description: >-
Manage groups for organizing users and assigning permissions.
- name: Identities
description: >-
Manage identities (keys) within segments.
- name: Large Segments
description: >-
Manage large segments optimized for high-volume identity lists.
- name: Segments
description: >-
Manage segments which define reusable groups of identities for targeting.
- name: Traffic Types
description: >-
Manage traffic types which define the entities (users, accounts, etc.)
that feature flags target.
- name: Users
description: >-
Manage users within the Split account, including inviting new users and
updating user roles.
- name: Workspaces
description: >-
Manage workspaces (projects) which organize feature flags and experiments
across business units, product lines, and applications.
security:
- bearerAuth: []
paths:
/workspaces:
get:
operationId: listWorkspaces
summary: List workspaces
description: >-
Retrieves all workspaces (projects) accessible to the authenticated
Admin API key. Workspaces allow you to separately manage feature flags
and experiments across different business units or applications.
tags:
- Workspaces
parameters:
- $ref: '#/components/parameters/limitParam'
- $ref: '#/components/parameters/offsetParam'
responses:
'200':
description: Successful response containing list of workspaces
content:
application/json:
schema:
$ref: '#/components/schemas/WorkspaceList'
'401':
description: Unauthorized - invalid or missing API key
'429':
description: Rate limit exceeded
/environments/ws/{workspaceId}:
get:
operationId: listEnvironments
summary: List environments
description: >-
Retrieves all environments within the specified workspace. Environments
represent deployment stages such as staging and production where feature
flag definitions can be configured independently.
tags:
- Environments
parameters:
- $ref: '#/components/parameters/workspaceIdParam'
responses:
'200':
description: Successful response containing list of environments
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/Environment'
'401':
description: Unauthorized - invalid or missing API key
'404':
description: Workspace not found
post:
operationId: createEnvironment
summary: Create environment
description: >-
Creates a new environment within the specified workspace.
tags:
- Environments
parameters:
- $ref: '#/components/parameters/workspaceIdParam'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/EnvironmentCreate'
responses:
'200':
description: Environment created successfully
content:
application/json:
schema:
$ref: '#/components/schemas/Environment'
'400':
description: Invalid request body
'401':
description: Unauthorized - invalid or missing API key
'404':
description: Workspace not found
/environments/ws/{workspaceId}/{environmentId}:
get:
operationId: getEnvironment
summary: Get environment
description: >-
Retrieves a single environment by its identifier within the specified
workspace.
tags:
- Environments
parameters:
- $ref: '#/components/parameters/workspaceIdParam'
- $ref: '#/components/parameters/environmentIdParam'
responses:
'200':
description: Successful response containing the environment
content:
application/json:
schema:
$ref: '#/components/schemas/Environment'
'401':
description: Unauthorized - invalid or missing API key
'404':
description: Environment or workspace not found
patch:
operationId: updateEnvironment
summary: Update environment
description: >-
Updates an existing environment within the specified workspace.
tags:
- Environments
parameters:
- $ref: '#/components/parameters/workspaceIdParam'
- $ref: '#/components/parameters/environmentIdParam'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/EnvironmentUpdate'
responses:
'200':
description: Environment updated successfully
content:
application/json:
schema:
$ref: '#/components/schemas/Environment'
'400':
description: Invalid request body
'401':
description: Unauthorized - invalid or missing API key
'404':
description: Environment or workspace not found
delete:
operationId: deleteEnvironment
summary: Delete environment
description: >-
Deletes an environment from the specified workspace.
tags:
- Environments
parameters:
- $ref: '#/components/parameters/workspaceIdParam'
- $ref: '#/components/parameters/environmentIdParam'
responses:
'200':
description: Environment deleted successfully
'401':
description: Unauthorized - invalid or missing API key
'404':
description: Environment or workspace not found
/trafficTypes/ws/{workspaceId}:
get:
operationId: listTrafficTypes
summary: List traffic types
description: >-
Retrieves all traffic types defined within the specified workspace.
Traffic types represent the kinds of entities that feature flags can
target, such as users or accounts.
tags:
- Traffic Types
parameters:
- $ref: '#/components/parameters/workspaceIdParam'
responses:
'200':
description: Successful response containing list of traffic types
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/TrafficType'
'401':
description: Unauthorized - invalid or missing API key
'404':
description: Workspace not found
/schema/ws/{workspaceId}/trafficTypes/{trafficTypeId}:
get:
operationId: listAttributes
summary: List attributes
description: >-
Retrieves all attributes defined for a given traffic type within the
specified workspace. Attributes are used in targeting rules for feature
flag definitions.
tags:
- Attributes
parameters:
- $ref: '#/components/parameters/workspaceIdParam'
- name: trafficTypeId
in: path
required: true
description: The unique identifier of the traffic type
schema:
type: string
responses:
'200':
description: Successful response containing list of attributes
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/Attribute'
'401':
description: Unauthorized - invalid or missing API key
'404':
description: Workspace or traffic type not found
/users:
get:
operationId: listUsers
summary: List users
description: >-
Retrieves all users that the Admin API key has access to within the
account. Returns user details including status, email, and group
memberships.
tags:
- Users
parameters:
- $ref: '#/components/parameters/limitParam'
- $ref: '#/components/parameters/offsetParam'
- name: status
in: query
description: Filter users by status
schema:
type: string
enum:
- ACTIVE
- DEACTIVATED
- PENDING
responses:
'200':
description: Successful response containing list of users
content:
application/json:
schema:
$ref: '#/components/schemas/UserList'
'401':
description: Unauthorized - invalid or missing API key
/users/{userId}:
get:
operationId: getUser
summary: Get user
description: >-
Retrieves a single user by their unique identifier.
tags:
- Users
parameters:
- name: userId
in: path
required: true
description: The unique identifier of the user
schema:
type: string
responses:
'200':
description: Successful response containing the user
content:
application/json:
schema:
$ref: '#/components/schemas/User'
'401':
description: Unauthorized - invalid or missing API key
'404':
description: User not found
put:
operationId: updateUser
summary: Update user
description: >-
Updates a user's profile, including their role and group memberships.
tags:
- Users
parameters:
- name: userId
in: path
required: true
description: The unique identifier of the user
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/UserUpdate'
responses:
'200':
description: User updated successfully
content:
application/json:
schema:
$ref: '#/components/schemas/User'
'400':
description: Invalid request body
'401':
description: Unauthorized - invalid or missing API key
'404':
description: User not found
delete:
operationId: deleteUser
summary: Deactivate user
description: >-
Deactivates a user within the account.
tags:
- Users
parameters:
- name: userId
in: path
required: true
description: The unique identifier of the user
schema:
type: string
responses:
'200':
description: User deactivated successfully
'401':
description: Unauthorized - invalid or missing API key
'404':
description: User not found
/users/invite:
post:
operationId: inviteUser
summary: Invite user
description: >-
Invites a new user to the account by sending an invitation email.
tags:
- Users
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/UserInvite'
responses:
'200':
description: User invited successfully
content:
application/json:
schema:
$ref: '#/components/schemas/User'
'400':
description: Invalid request body
'401':
description: Unauthorized - invalid or missing API key
/groups:
get:
operationId: listGroups
summary: List groups
description: >-
Retrieves all active groups in the account. Groups are used to organize
users and assign permissions collectively.
tags:
- Groups
responses:
'200':
description: Successful response containing list of groups
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/Group'
'401':
description: Unauthorized - invalid or missing API key
post:
operationId: createGroup
summary: Create group
description: >-
Creates a new group with a name and description. Group names are unique
within an account.
tags:
- Groups
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/GroupCreate'
responses:
'200':
description: Group created successfully
content:
application/json:
schema:
$ref: '#/components/schemas/Group'
'400':
description: Invalid request body or group name already exists
'401':
description: Unauthorized - invalid or missing API key
/groups/{groupId}:
get:
operationId: getGroup
summary: Get group
description: >-
Retrieves a single group by its unique identifier.
tags:
- Groups
parameters:
- name: groupId
in: path
required: true
description: The unique identifier of the group
schema:
type: string
responses:
'200':
description: Successful response containing the group
content:
application/json:
schema:
$ref: '#/components/schemas/Group'
'401':
description: Unauthorized - invalid or missing API key
'404':
description: Group not found
delete:
operationId: deleteGroup
summary: Delete group
description: >-
Deletes a group from the account.
tags:
- Groups
parameters:
- name: groupId
in: path
required: true
description: The unique identifier of the group
schema:
type: string
responses:
'200':
description: Group deleted successfully
'401':
description: Unauthorized - invalid or missing API key
'404':
description: Group not found
/apiKeys:
post:
operationId: createApiKey
summary: Create API key
description: >-
Creates a new API key with specified roles and scope. API keys can be
scoped to specific environments, a workspace, or the entire account.
tags:
- API Keys
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/ApiKeyCreate'
responses:
'200':
description: API key created successfully
content:
application/json:
schema:
$ref: '#/components/schemas/ApiKey'
'400':
description: Invalid request body
'401':
description: Unauthorized - invalid or missing API key
/apiKeys/{apiKeyId}:
delete:
operationId: deleteApiKey
summary: Delete API key
description: >-
Deletes an existing API key by its unique identifier.
tags:
- API Keys
parameters:
- name: apiKeyId
in: path
required: true
description: The unique identifier of the API key
schema:
type: string
responses:
'200':
description: API key deleted successfully
'401':
description: Unauthorized - invalid or missing API key
'404':
description: API key not found
/segments/ws/{workspaceId}:
get:
operationId: listSegments
summary: List segments
description: >-
Retrieves all segments defined within the specified workspace.
tags:
- Segments
parameters:
- $ref: '#/components/parameters/workspaceIdParam'
- $ref: '#/components/parameters/limitParam'
- $ref: '#/components/parameters/offsetParam'
responses:
'200':
description: Successful response containing list of segments
content:
application/json:
schema:
$ref: '#/components/schemas/SegmentList'
'401':
description: Unauthorized - invalid or missing API key
'404':
description: Workspace not found
/segments/ws/{workspaceId}/environments/{environmentId}:
get:
operationId: listSegmentsInEnvironment
summary: List segments in environment
description: >-
Retrieves all segments activated in the specified environment within
the given workspace.
tags:
- Segments
parameters:
- $ref: '#/components/parameters/workspaceIdParam'
- $ref: '#/components/parameters/environmentIdParam'
- $ref: '#/components/parameters/limitParam'
- $ref: '#/components/parameters/offsetParam'
responses:
'200':
description: Successful response containing list of segments
content:
application/json:
schema:
$ref: '#/components/schemas/SegmentList'
'401':
description: Unauthorized - invalid or missing API key
'404':
description: Workspace or environment not found
/segments/{environmentId}/{segmentName}:
post:
operationId: enableSegmentInEnvironment
summary: Enable segment in environment
description: >-
Activates a segment in the specified environment, making it available
for use in feature flag targeting rules.
tags:
- Segments
parameters:
- name: environmentId
in: path
required: true
description: The unique identifier of the environment
schema:
type: string
- name: segmentName
in: path
required: true
description: The name of the segment
schema:
type: string
responses:
'200':
description: Segment enabled successfully
'401':
description: Unauthorized - invalid or missing API key
'404':
description: Segment or environment not found
delete:
operationId: deactivateSegmentInEnvironment
summary: Deactivate segment in environment
description: >-
Deactivates a segment in the specified environment.
tags:
- Segments
parameters:
- name: environmentId
in: path
required: true
description: The unique identifier of the environment
schema:
type: string
- name: segmentName
in: path
required: true
description: The name of the segment
schema:
type: string
responses:
'200':
description: Segment deactivated successfully
'401':
description: Unauthorized - invalid or missing API key
'404':
description: Segment or environment not found
/segments/{environmentId}/{segmentName}/upload:
put:
operationId: updateSegmentKeysViaCSV
summary: Update segment keys via CSV
description: >-
Replaces all keys in a segment by uploading a CSV file containing
the new set of identities.
tags:
- Identities
parameters:
- name: environmentId
in: path
required: true
description: The unique identifier of the environment
schema:
type: string
- name: segmentName
in: path
required: true
description: The name of the segment
schema:
type: string
requestBody:
required: true
content:
text/csv:
schema:
type: string
description: CSV file with one identity key per line
responses:
'200':
description: Segment keys updated successfully
'400':
description: Invalid CSV format
'401':
description: Unauthorized - invalid or missing API key
'404':
description: Segment or environment not found
/segments/{environmentId}/{segmentName}/keys:
get:
operationId: listSegmentKeys
summary: List segment keys
description: >-
Retrieves the identity keys belonging to the specified segment in the
given environment.
tags:
- Identities
parameters:
- name: environmentId
in: path
required: true
description: The unique identifier of the environment
schema:
type: string
- name: segmentName
in: path
required: true
description: The name of the segment
schema:
type: string
- $ref: '#/components/parameters/limitParam'
- $ref: '#/components/parameters/offsetParam'
responses:
'200':
description: Successful response containing segment keys
content:
application/json:
schema:
$ref: '#/components/schemas/SegmentKeysList'
'401':
description: Unauthorized - invalid or missing API key
'404':
description: Segment or environment not found
post:
operationId: addSegmentKeys
summary: Add keys to segment
description: >-
Adds identity keys to the specified segment in the given environment.
tags:
- Identities
parameters:
- name: environmentId
in: path
required: true
description: The unique identifier of the environment
schema:
type: string
- name: segmentName
in: path
required: true
description: The name of the segment
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/SegmentKeysUpdate'
responses:
'200':
description: Keys added successfully
'400':
description: Invalid request body
'401':
description: Unauthorized - invalid or missing API key
'404':
description: Segment or environment not found
delete:
operationId: removeSegmentKeys
summary: Remove keys from segment
description: >-
Removes identity keys from the specified segment in the given
environment.
tags:
- Identities
parameters:
- name: environmentId
in: path
required: true
description: The unique identifier of the environment
schema:
type: string
- name: segmentName
in: path
required: true
description: The name of the segment
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/SegmentKeysUpdate'
responses:
'200':
description: Keys removed successfully
'400':
description: Invalid request body
'401':
description: Unauthorized - invalid or missing API key
'404':
description: Segment or environment not found
/large-segments/ws/{workspaceId}/environments/{environmentId}:
get:
operationId: listLargeSegmentsInEnvironment
summary: List large segments in environment
description: >-
Retrieves all large segments configured in the specified environment
within the given workspace.
tags:
- Large Segments
parameters:
- $ref: '#/components/parameters/workspaceIdParam'
- $ref: '#/components/parameters/environmentIdParam'
- $ref: '#/components/parameters/limitParam'
- $ref: '#/components/parameters/offsetParam'
responses:
'200':
description: Successful response containing list of large segments
content:
application/json:
schema:
$ref: '#/components/schemas/LargeSegmentList'
'401':
description: Unauthorized - invalid or missing API key
'404':
description: Workspace or environment not found
/changeRequests:
get:
operationId: listChangeRequests
summary: List change requests
description: >-
Retrieves all change requests, which represent pending modifications
to feature flag definitions that require approval before being applied.
tags:
- Change Requests
parameters:
- $ref: '#/components/parameters/limitParam'
- $ref: '#/components/parameters/offsetParam'
- name: status
in: query
description: Filter by change request status
schema:
type: string
enum:
- OPEN
- APPROVED
- DECLINED
- APPLIED
- CANCELLED
responses:
'200':
description: Successful response containing list of change requests
content:
application/json:
schema:
$ref: '#/components/schemas/ChangeRequestList'
'401':
description: Unauthorized - invalid or missing API key
/changeRequests/{changeRequestId}/approve:
put:
operationId: approveChangeRequest
summary: Approve change request
description: >-
Approves a pending change request, allowing the proposed feature flag
definition changes to be applied.
tags:
- Change Requests
parameters:
- name: changeRequestId
in: path
required: true
description: The unique identifier of the change request
schema:
type: string
requestBody:
content:
application/json:
schema:
type: object
properties:
comment:
type: string
description: Optional approval comment
responses:
'200':
description: Change request approved successfully
'401':
description: Unauthorized - invalid or missing API key
'404':
description: Change request not found
components:
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: >-
Admin API key passed as a Bearer token in the Authorization header.
parameters:
workspaceIdParam:
name: workspaceId
in: path
required: true
description: The unique identifier of the workspace
schema:
type: string
environmentIdParam:
name: environmentId
in: path
required: true
description: The unique identifier or name of the environment
schema:
type: string
limitParam:
name: limit
in: query
description: Maximum number of results to return per page
schema:
type: integer
minimum: 1
maximum: 200
default: 20
offsetParam:
name: offset
in: query
description: Number of results to skip for pagination
schema:
type: integer
minimum: 0
default: 0
schemas:
Workspace:
type: object
description: >-
A workspace (project) that organizes feature flags and experiments
across business units or applications.
properties:
id:
type: string
description: Unique identifier for the workspace
name:
type: string
description: Human-readable name of the workspace
requiresTitleAndComments:
type: boolean
description: Whether changes require titles and comments
WorkspaceList:
type: object
description: Paginated list of workspaces
properties:
objects:
type: array
items:
$ref: '#/components/schemas/Workspace'
offset:
type: integer
description: Current offset in the result set
limit:
type: integer
description: Maximum number of results returned
totalCount:
type: integer
description: Total number of workspaces available
Environment:
type: object
description: >-
An environment representing a deployment stage where feature flags
can be independently configured.
properties:
id:
type: string
description: Unique identifier for the environment
name:
type: string
description: Human-readable name of the environment
production:
type: boolean
description: Whether this is a production environment
EnvironmentCreate:
type: object
description: Request body for creating a new environment
required:
- name
properties:
name:
type: string
description: Name of the new environment
production:
type: boolean
description: Whether this is a production environment
EnvironmentUpdate:
type: object
description: Request body for updating an environment
properties:
name:
type: string
description: Updated name for the environment
production:
type: boolean
description: Whether this is a production environment
TrafficType:
type: object
description: >-
A traffic type defining the kind of entity that feature flags target.
properties:
id:
type: string
description: Unique identifier for the traffic type
name:
type: string
description: Name of the traffic type (e.g., user, account)
Attribute: