{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-personalize/json-schema/amazon-personalize-update-campaign-request-schema.json",
  "title": "UpdateCampaignRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-personalize-campaign-api-openapi.yml#/components/schemas/UpdateCampaignRequest",
  "type": "object",
  "properties": {
    "campaignArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the campaign."
    },
    "solutionVersionArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of a new model to deploy. To specify the latest solution version of your solution, specify the ARN of your solution in SolutionArn/$LATEST format. You must use this format if you set syncWithLatestSolutionVersion to True in the CampaignConfig. To deploy a model that isn't the latest solution version of your solution, specify the ARN of the solution version. For more information about automatic campaign updates, see Enabling automatic campaign updates."
    },
    "minProvisionedTPS": {
      "type": "integer",
      "description": "Specifies the requested minimum provisioned transactions (recommendations) per second that Amazon Personalize will support. A high minProvisionedTPS will increase your bill. We recommend starting with 1 for minProvisionedTPS (the default). Track your usage using Amazon CloudWatch metrics, and increase the minProvisionedTPS as necessary."
    },
    "campaignConfig": {
      "$ref": "#/$defs/CampaignConfig"
    }
  },
  "required": [
    "campaignArn"
  ],
  "$defs": {
    "CampaignConfig": {
      "type": "object",
      "properties": {
        "itemExplorationConfig": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "Specifies the exploration configuration hyperparameters, including explorationWeight and explorationItemAgeCutOff, you want to use to configure the amount of item exploration Amazon Personalize uses when recommending items. Provide itemExplorationConfig data only if your solution uses the User-Personalization recipe."
        },
        "enableMetadataWithRecommendations": {
          "type": "boolean",
          "description": "Whether metadata with recommendations is enabled for the campaign. If enabled, you can specify the columns from your Items dataset in your request for recommendations. Amazon Personalize returns this data for each item in the recommendation response. For information about enabling metadata for a campaign, see Enabling metadata in recommendations for a campaign. If you enable metadata in recommendations, you will incur additional costs. For more information, see Amazon Personalize pricing."
        },
        "syncWithLatestSolutionVersion": {
          "type": "boolean",
          "description": "Whether the campaign automatically updates to use the latest solution version (trained model) of a solution. If you specify True, you must specify the ARN of your solution for the SolutionVersionArn parameter. It must be in SolutionArn/$LATEST format. The default is False and you must manually update the campaign to deploy the latest solution version. For more information about automatic campaign updates, see Enabling automatic campaign updates."
        },
        "rankingInfluence": {
          "type": "object",
          "additionalProperties": {
            "type": "number"
          },
          "description": "A map of ranking influence values for POPULARITY and FRESHNESS. For each key, specify a numerical value between 0.0 and 1.0 that determines how much influence that ranking factor has on the final recommendations. A value closer to 1.0 gives more weight to the factor, while a value closer to 0.0 reduces its influence."
        }
      }
    }
  }
}