UpdateFlagEnvironments

April 15, 2026 ยท View on GitHub

Example Usage

import { UpdateFlagEnvironments } from "@vercel/sdk/models/updateflagop.js";

let value: UpdateFlagEnvironments = {
  active: false,
  pausedOutcome: {
    type: "<value>",
    variantId: "<id>",
  },
  rules: [
    {
      id: "<id>",
      conditions: [],
      outcome: {
        type: "<value>",
        base: {
          type: "<value>",
          kind: "<value>",
          attribute: "<value>",
        },
        startTimestamp: 3544.82,
        rollFromVariantId: "<id>",
        rollToVariantId: "<id>",
        defaultVariantId: "<id>",
        slots: [],
      },
    },
  ],
  fallthrough: {
    type: "<value>",
    variantId: "<id>",
  },
};

Fields

FieldTypeRequiredDescription
activeboolean:heavy_check_mark:N/A
reusemodels.UpdateFlagReuse:heavy_minus_sign:Allows linking this environment to another environment so this flag will be evaluated with the other flag's configuration
targetsRecord<string, Record<string, Record<string, models.UpdateFlagTargets[]>>>:heavy_minus_sign:Allows assigning targets to variants while bypassing the flag's rules
pausedOutcomemodels.UpdateFlagPausedOutcome:heavy_check_mark:N/A
rulesmodels.UpdateFlagRules[]:heavy_check_mark:N/A
fallthroughmodels.UpdateFlagFallthrough:heavy_check_mark:N/A
revisionnumber:heavy_minus_sign:The revision of the environment config