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
When backend approvals are enabled and the flag requires approval, this endpoint creates and returns a `FlagSuggestion` with `201 Created` instead of deleting the variant immediately. If a pending suggestion already exists for this flag's variant property, the endpoint returns `409 Conflict`.
134266
+
operationId: DeleteVariantFromFeatureFlag
134267
+
parameters:
134268
+
- $ref: "#/components/parameters/feature_flag_id"
134269
+
- $ref: "#/components/parameters/variant_id"
134270
+
responses:
134271
+
"204":
134272
+
description: No Content
134273
+
"400":
134274
+
content:
134275
+
application/json:
134276
+
schema:
134277
+
$ref: "#/components/schemas/APIErrorResponse"
134278
+
description: Bad Request
134279
+
"403":
134280
+
content:
134281
+
application/json:
134282
+
schema:
134283
+
$ref: "#/components/schemas/APIErrorResponse"
134284
+
description: Forbidden
134285
+
"404":
134286
+
content:
134287
+
application/json:
134288
+
schema:
134289
+
$ref: "#/components/schemas/APIErrorResponse"
134290
+
description: Not Found
134291
+
"409":
134292
+
content:
134293
+
application/json:
134294
+
schema:
134295
+
$ref: "#/components/schemas/APIErrorResponse"
134296
+
description: Conflict - A pending suggestion already exists for this property.
Updates the name and value of an existing variant on a feature flag.
134313
+
134314
+
When backend approvals are enabled and the flag requires approval, this endpoint creates and returns a `FlagSuggestion` with `201 Created` instead of applying the change immediately. Use the returned suggestion `id` to approve or reject the change. If a pending suggestion already exists for this flag's variant property, the endpoint returns `409 Conflict`.
134315
+
operationId: UpdateVariantForFeatureFlag
134316
+
parameters:
134317
+
- $ref: "#/components/parameters/feature_flag_id"
134318
+
- $ref: "#/components/parameters/variant_id"
134319
+
requestBody:
134320
+
content:
134321
+
application/json:
134322
+
examples:
134323
+
default:
134324
+
value:
134325
+
data:
134326
+
attributes:
134327
+
name: Dark Theme Updated
134328
+
value: dark_v2
134329
+
id: "550e8400-e29b-41d4-a716-446655440002"
134330
+
type: variants
134331
+
schema:
134332
+
$ref: "#/components/schemas/UpdateVariantRequest"
134333
+
required: true
134334
+
responses:
134335
+
"200":
134336
+
content:
134337
+
application/json:
134338
+
examples:
134339
+
default:
134340
+
value:
134341
+
data:
134342
+
attributes:
134343
+
created_at: "2024-01-01T00:00:00+00:00"
134344
+
key: dark
134345
+
name: Dark Theme Updated
134346
+
updated_at: "2024-06-01T00:00:00+00:00"
134347
+
value: dark_v2
134348
+
id: "550e8400-e29b-41d4-a716-446655440002"
134349
+
type: variants
134350
+
schema:
134351
+
$ref: "#/components/schemas/Variant"
134352
+
description: OK
134353
+
"400":
134354
+
content:
134355
+
application/json:
134356
+
schema:
134357
+
$ref: "#/components/schemas/APIErrorResponse"
134358
+
description: Bad Request
134359
+
"403":
134360
+
content:
134361
+
application/json:
134362
+
schema:
134363
+
$ref: "#/components/schemas/APIErrorResponse"
134364
+
description: Forbidden
134365
+
"404":
134366
+
content:
134367
+
application/json:
134368
+
schema:
134369
+
$ref: "#/components/schemas/APIErrorResponse"
134370
+
description: Not Found
134371
+
"409":
134372
+
content:
134373
+
application/json:
134374
+
schema:
134375
+
$ref: "#/components/schemas/APIErrorResponse"
134376
+
description: Conflict - A pending suggestion already exists for this property.
Copy file name to clipboardExpand all lines: data/api/v2/translate_actions.json
+16Lines changed: 16 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1874,6 +1874,22 @@
1874
1874
"description": "Unarchives a previously archived feature flag,\nmaking it visible in the main list again.",
1875
1875
"summary": "Unarchive a feature flag"
1876
1876
},
1877
+
"CreateVariantForFeatureFlag": {
1878
+
"description": "Adds a single new variant to an existing feature flag. This endpoint is\nadditive-only: it never modifies existing variants. A request whose `key`\nalready exists on the flag is rejected with `409 Conflict`; a `value`\nwhose type does not match the flag's `value_type` is rejected with `400`.\nThe server generates the variant UUID and returns it in the response body;\ncallers (for example, the flag-migration tool) need this UUID to reference\nthe new variant in subsequent allocation syncs.",
1879
+
"summary": "Add a variant to a feature flag",
1880
+
"request_description": "",
1881
+
"request_schema_description": "Request to create a variant."
1882
+
},
1883
+
"DeleteVariantFromFeatureFlag": {
1884
+
"description": "Deletes a variant from a feature flag.\n\nWhen backend approvals are enabled and the flag requires approval, this endpoint creates and returns a `FlagSuggestion` with `201 Created` instead of deleting the variant immediately. If a pending suggestion already exists for this flag's variant property, the endpoint returns `409 Conflict`.",
1885
+
"summary": "Delete a variant"
1886
+
},
1887
+
"UpdateVariantForFeatureFlag": {
1888
+
"description": "Updates the name and value of an existing variant on a feature flag.\n\nWhen backend approvals are enabled and the flag requires approval, this endpoint creates and returns a `FlagSuggestion` with `201 Created` instead of applying the change immediately. Use the returned suggestion `id` to approve or reject the change. If a pending suggestion already exists for this flag's variant property, the endpoint returns `409 Conflict`.",
1889
+
"summary": "Update a variant",
1890
+
"request_description": "",
1891
+
"request_schema_description": "Request to update an existing variant's name and value."
1892
+
},
1877
1893
"ListForms": {
1878
1894
"description": "Get all forms for the authenticated user's organization.",
0 commit comments