{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-personalize/json-schema/amazon-personalize-update-solution-request-schema.json",
  "title": "UpdateSolutionRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-personalize-solution-api-openapi.yml#/components/schemas/UpdateSolutionRequest",
  "type": "object",
  "properties": {
    "solutionArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the solution to update."
    },
    "performAutoTraining": {
      "type": "boolean",
      "description": "Whether the solution uses automatic training to create new solution versions (trained models). You can change the training frequency by specifying a schedulingExpression in the AutoTrainingConfig as part of solution configuration. If you turn on automatic training, the first automatic training starts within one hour after the solution update completes. If you manually create a solution version within the hour, the solution skips the first automatic training. For more information about automatic training, see Configuring automatic training. After training starts, you can get the solution versio"
    },
    "performIncrementalUpdate": {
      "type": "boolean",
      "description": "Whether to perform incremental training updates on your model. When enabled, this allows the model to learn from new data more frequently without requiring full retraining, which enables near real-time personalization. This parameter is supported only for solutions that use the semantic-similarity recipe."
    },
    "solutionUpdateConfig": {
      "$ref": "#/$defs/SolutionUpdateConfig"
    }
  },
  "required": [
    "solutionArn"
  ],
  "$defs": {
    "AutoTrainingConfig": {
      "type": "object",
      "properties": {
        "schedulingExpression": {
          "type": "string",
          "description": "Specifies how often to automatically train new solution versions. Specify a rate expression in rate(value unit) format. For value, specify a number between 1 and 30. For unit, specify day or days. For example, to automatically create a new solution version every 5 days, specify rate(5 days). The default is every 7 days. For more information about auto training, see Creating and configuring a solution."
        }
      }
    },
    "EventParameters": {
      "type": "object",
      "properties": {
        "eventType": {
          "type": "string",
          "description": "The name of the event type to be considered for solution creation."
        },
        "eventValueThreshold": {
          "type": "number",
          "description": "The threshold of the event type. Only events with a value greater or equal to this threshold will be considered for solution creation."
        },
        "weight": {
          "type": "number",
          "description": "The weight of the event type. A higher weight means higher importance of the event type for the created solution."
        }
      }
    },
    "EventsConfig": {
      "type": "object",
      "properties": {
        "eventParametersList": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/EventParameters"
          },
          "description": "A list of event parameters, which includes event types and their event value thresholds and weights."
        }
      }
    },
    "SolutionUpdateConfig": {
      "type": "object",
      "properties": {
        "autoTrainingConfig": {
          "$ref": "#/$defs/AutoTrainingConfig"
        },
        "eventsConfig": {
          "$ref": "#/$defs/EventsConfig"
        }
      }
    }
  }
}