You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/OperationsAPI.yaml
+52-1Lines changed: 52 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -568,6 +568,8 @@ paths:
568
568
description: Unauthorized.
569
569
"409":
570
570
description: A feature flag with this ID already exists.
571
+
"422":
572
+
description: default_value does not match the declared value_type.
571
573
/v1/operations/feature-flags/{id}:
572
574
put:
573
575
summary: Update a feature flag
@@ -601,6 +603,32 @@ paths:
601
603
description: Unauthorized.
602
604
"404":
603
605
description: Feature flag not found.
606
+
"422":
607
+
description: default_value does not match the declared value_type.
608
+
delete:
609
+
summary: Delete a feature flag
610
+
description: >
611
+
Deletes a feature flag definition. All user assignments for this flag are removed as well (cascading delete).
612
+
613
+
operationId: deleteFeatureFlag
614
+
tags:
615
+
- "users"
616
+
security:
617
+
- ApiKeyAuth: []
618
+
parameters:
619
+
- name: id
620
+
in: path
621
+
required: true
622
+
schema:
623
+
type: string
624
+
description: The feature flag slug ID.
625
+
responses:
626
+
"204":
627
+
description: Feature flag deleted.
628
+
"401":
629
+
description: Unauthorized.
630
+
"404":
631
+
description: Feature flag not found.
604
632
components:
605
633
schemas:
606
634
Redirect:
@@ -1905,6 +1933,7 @@ components:
1905
1933
example: vp
1906
1934
description: >
1907
1935
The type of realtime entry:
1936
+
1908
1937
* vp - vehicle positions
1909
1938
* tu - trip updates
1910
1939
* sa - service alerts
@@ -2029,6 +2058,7 @@ components:
2029
2058
example: vp
2030
2059
description: >
2031
2060
The type of realtime entry:
2061
+
2032
2062
* vp - vehicle positions
2033
2063
* tu - trip updates
2034
2064
* sa - service alerts
@@ -2116,6 +2146,7 @@ components:
2116
2146
x-operation: true
2117
2147
description: >
2118
2148
Describes status of the Feed. Should be one of
2149
+
2119
2150
* `active` Feed should be used in public trip planners.
2120
2151
* `deprecated` Feed is explicitly deprecated and should not be used in public trip planners.
2121
2152
* `inactive` Feed hasn't been recently updated and should be used at risk of providing outdated information.
@@ -2133,6 +2164,7 @@ components:
2133
2164
x-operation: true
2134
2165
description: >
2135
2166
Describes data type of a feed. Should be one of
2167
+
2136
2168
* `gtfs` GTFS feed.
2137
2169
* `gtfs_rt` GTFS-RT feed.
2138
2170
* `gbfs` GBFS feed.
@@ -2220,6 +2252,12 @@ components:
2220
2252
default_value:
2221
2253
$ref: "#/components/schemas/FeatureFlagValue"
2222
2254
description: The flag's global default value.
2255
+
disabled:
2256
+
type: boolean
2257
+
description: >
2258
+
When true, the flag is hidden from the user-facing API. It remains visible and manageable through the Operations API.
2259
+
2260
+
default: false
2223
2261
CreateFeatureFlagRequest:
2224
2262
x-operation: true
2225
2263
type: object
@@ -2247,6 +2285,12 @@ components:
2247
2285
default_value:
2248
2286
$ref: "#/components/schemas/FeatureFlagValue"
2249
2287
description: The flag's global default value.
2288
+
disabled:
2289
+
type: boolean
2290
+
description: >
2291
+
When true, the flag is hidden from the user-facing API. It remains visible and manageable through the Operations API.
2292
+
2293
+
default: false
2250
2294
UpdateFeatureFlagRequest:
2251
2295
x-operation: true
2252
2296
type: object
@@ -2262,6 +2306,11 @@ components:
2262
2306
default_value:
2263
2307
$ref: "#/components/schemas/FeatureFlagValue"
2264
2308
description: Updated global default value. value_type cannot be changed.
2309
+
disabled:
2310
+
type: boolean
2311
+
description: >
2312
+
When true, the flag is hidden from the user-facing API. It remains visible and manageable through the Operations API.
2313
+
2265
2314
OperationUserProfile:
2266
2315
x-operation: true
2267
2316
type: object
@@ -2290,7 +2339,9 @@ components:
2290
2339
example: "Acme Transit"
2291
2340
features:
2292
2341
type: array
2293
-
description: Feature flags currently assigned to this user.
2342
+
description: >
2343
+
All feature flags with their resolved state for this user. Every flag is returned (including those the user has no explicit override for); user_value holds the per-user override when set, otherwise the flag's default_value applies.
0 commit comments