{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-systems-manager/json-schema/amazon-systems-manager-update-experiment-definition-request-schema.json",
  "title": "UpdateExperimentDefinitionRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-systems-manager-experimentdefinitions-api-openapi.yml#/components/schemas/UpdateExperimentDefinitionRequest",
  "type": "object",
  "properties": {
    "ApplicationIdentifier": {
      "type": "string",
      "description": "The application ID or name."
    },
    "ExperimentDefinitionIdentifier": {
      "type": "string",
      "description": "The experiment definition ID or name."
    },
    "Treatments": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/TreatmentInput"
      },
      "description": "The updated list of treatments to evaluate during the experiment. Each treatment defines a distinct variation compared to the control."
    },
    "Control": {
      "$ref": "#/$defs/TreatmentInput"
    },
    "Hypothesis": {
      "type": "string",
      "description": "An updated hypothesis."
    },
    "AudienceRule": {
      "type": "string",
      "description": "An updated audience rule."
    },
    "AudienceDescription": {
      "type": "string",
      "description": "An updated audience description."
    },
    "LaunchCriteria": {
      "type": "string",
      "description": "Updated launch criteria."
    }
  },
  "required": [
    "ApplicationIdentifier",
    "ExperimentDefinitionIdentifier"
  ],
  "$defs": {
    "AttributeValue": {
      "type": "object",
      "properties": {
        "StringValue": {
          "type": "string",
          "description": "A string value for the attribute."
        },
        "NumberValue": {
          "type": "number",
          "description": "A numeric value for the attribute."
        },
        "BooleanValue": {
          "type": "boolean",
          "description": "A Boolean value for the attribute."
        },
        "StringArray": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "An array of string values for the attribute."
        },
        "NumberArray": {
          "type": "array",
          "items": {
            "type": "number"
          },
          "description": "An array of numeric values for the attribute."
        }
      },
      "description": "Exactly one member is set."
    },
    "FlagValue": {
      "type": "object",
      "properties": {
        "Enabled": {
          "type": "boolean",
          "description": "Specifies whether the feature flag is enabled for this treatment."
        },
        "AttributeValues": {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/AttributeValue"
          },
          "description": "The attribute values associated with this flag value."
        }
      },
      "required": [
        "Enabled"
      ]
    },
    "TreatmentInput": {
      "type": "object",
      "properties": {
        "Weight": {
          "type": "number",
          "description": "The traffic allocation weight for this treatment."
        },
        "Description": {
          "type": "string",
          "description": "A description of the treatment."
        },
        "FlagValue": {
          "$ref": "#/$defs/FlagValue"
        }
      },
      "required": [
        "Weight",
        "FlagValue"
      ]
    }
  }
}