UpdateFlagRules
April 15, 2026 ยท View on GitHub
Example Usage
import { UpdateFlagRules } from "@vercel/sdk/models/updateflagop.js";
let value: UpdateFlagRules = {
id: "<id>",
conditions: [
{
lhs: {
type: "<value>",
},
cmp: "eq",
},
],
outcome: {
type: "<value>",
base: {
type: "<value>",
kind: "<value>",
attribute: "<value>",
},
weights: {
"key": 1446.07,
},
defaultVariantId: "<id>",
},
};
Fields
| Field | Type | Required | Description |
|---|---|---|---|
id | string | :heavy_check_mark: | N/A |
conditions | models.UpdateFlagConditions[] | :heavy_check_mark: | N/A |
outcome | models.UpdateFlagOutcome | :heavy_check_mark: | N/A |