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`.
133036
+
operationId: DeleteVariantFromFeatureFlag
133037
+
parameters:
133038
+
- $ref: "#/components/parameters/feature_flag_id"
133039
+
- $ref: "#/components/parameters/variant_id"
133040
+
responses:
133041
+
"204":
133042
+
description: No Content
133043
+
"400":
133044
+
content:
133045
+
application/json:
133046
+
schema:
133047
+
$ref: "#/components/schemas/APIErrorResponse"
133048
+
description: Bad Request
133049
+
"403":
133050
+
content:
133051
+
application/json:
133052
+
schema:
133053
+
$ref: "#/components/schemas/APIErrorResponse"
133054
+
description: Forbidden
133055
+
"404":
133056
+
content:
133057
+
application/json:
133058
+
schema:
133059
+
$ref: "#/components/schemas/APIErrorResponse"
133060
+
description: Not Found
133061
+
"409":
133062
+
content:
133063
+
application/json:
133064
+
schema:
133065
+
$ref: "#/components/schemas/APIErrorResponse"
133066
+
description: Conflict - A pending suggestion already exists for this property.
Updates the name and value of an existing variant on a feature flag.
133082
+
133083
+
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`.
133084
+
operationId: UpdateVariantForFeatureFlag
133085
+
parameters:
133086
+
- $ref: "#/components/parameters/feature_flag_id"
133087
+
- $ref: "#/components/parameters/variant_id"
133088
+
requestBody:
133089
+
content:
133090
+
application/json:
133091
+
examples:
133092
+
default:
133093
+
value:
133094
+
data:
133095
+
attributes:
133096
+
name: Dark Theme Updated
133097
+
value: dark_v2
133098
+
id: "550e8400-e29b-41d4-a716-446655440002"
133099
+
type: variants
133100
+
schema:
133101
+
$ref: "#/components/schemas/UpdateVariantRequest"
133102
+
required: true
133103
+
responses:
133104
+
"200":
133105
+
content:
133106
+
application/json:
133107
+
examples:
133108
+
default:
133109
+
value:
133110
+
data:
133111
+
attributes:
133112
+
created_at: "2024-01-01T00:00:00+00:00"
133113
+
key: dark
133114
+
name: Dark Theme Updated
133115
+
updated_at: "2024-06-01T00:00:00+00:00"
133116
+
value: dark_v2
133117
+
id: "550e8400-e29b-41d4-a716-446655440002"
133118
+
type: variants
133119
+
schema:
133120
+
$ref: "#/components/schemas/Variant"
133121
+
description: OK
133122
+
"400":
133123
+
content:
133124
+
application/json:
133125
+
schema:
133126
+
$ref: "#/components/schemas/APIErrorResponse"
133127
+
description: Bad Request
133128
+
"403":
133129
+
content:
133130
+
application/json:
133131
+
schema:
133132
+
$ref: "#/components/schemas/APIErrorResponse"
133133
+
description: Forbidden
133134
+
"404":
133135
+
content:
133136
+
application/json:
133137
+
schema:
133138
+
$ref: "#/components/schemas/APIErrorResponse"
133139
+
description: Not Found
133140
+
"409":
133141
+
content:
133142
+
application/json:
133143
+
schema:
133144
+
$ref: "#/components/schemas/APIErrorResponse"
133145
+
description: Conflict - A pending suggestion already exists for this property.
0 commit comments