Amplitude · Schema

UpdateFlagRequest

A/B TestingAnalyticsExperimentationFeature FlagsProduct AnalyticsUser Behavior

Properties

Name Type Description
name string The updated display name.
description string The updated description.
enabled boolean Whether the flag should be enabled.
variants array Updated variant configurations.
segments array Updated targeting segment configurations.
View JSON Schema on GitHub

JSON Schema

amplitude-updateflagrequest-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/UpdateFlagRequest",
  "title": "UpdateFlagRequest",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "The updated display name."
    },
    "description": {
      "type": "string",
      "description": "The updated description."
    },
    "enabled": {
      "type": "boolean",
      "description": "Whether the flag should be enabled."
    },
    "variants": {
      "type": "array",
      "description": "Updated variant configurations.",
      "items": {
        "$ref": "#/components/schemas/VariantConfig"
      }
    },
    "segments": {
      "type": "array",
      "description": "Updated targeting segment configurations.",
      "items": {
        "$ref": "#/components/schemas/Segment"
      }
    }
  }
}