{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-q/json-schema/amazon-q-update-web-experience-request-schema.json",
  "title": "UpdateWebExperienceRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-q-experiences-api-openapi.yml#/components/schemas/UpdateWebExperienceRequest",
  "type": "object",
  "properties": {
    "applicationId": {
      "type": "string",
      "description": "The identifier of the Amazon Q Business application attached to the web experience."
    },
    "webExperienceId": {
      "type": "string",
      "description": "The identifier of the Amazon Q Business web experience."
    },
    "roleArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the role with permission to access the Amazon Q Business web experience and required resources."
    },
    "authenticationConfiguration": {
      "$ref": "#/$defs/WebExperienceAuthConfiguration"
    },
    "title": {
      "type": "string",
      "description": "The title of the Amazon Q Business web experience."
    },
    "subtitle": {
      "type": "string",
      "description": "The subtitle of the Amazon Q Business web experience."
    },
    "welcomeMessage": {
      "type": "string",
      "description": "A customized welcome message for an end user in an Amazon Q Business web experience."
    },
    "samplePromptsControlMode": {
      "type": "string",
      "enum": [
        "ENABLED",
        "DISABLED"
      ],
      "description": "Determines whether sample prompts are enabled in the web experience for an end user."
    },
    "identityProviderConfiguration": {
      "$ref": "#/$defs/IdentityProviderConfiguration"
    },
    "origins": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Updates the website domain origins that are allowed to embed the Amazon Q Business web experience. The domain origin refers to the base URL for accessing a website including the protocol (http/https), the domain name, and the port number (if specified). Any values except null submitted as part of this update will replace all previous values. You must only submit a base URL and not a full path. For example, https://docs.aws.amazon.com."
    },
    "browserExtensionConfiguration": {
      "$ref": "#/$defs/BrowserExtensionConfiguration"
    },
    "customizationConfiguration": {
      "$ref": "#/$defs/CustomizationConfiguration"
    }
  },
  "required": [
    "applicationId",
    "webExperienceId"
  ],
  "$defs": {
    "BrowserExtensionConfiguration": {
      "type": "object",
      "properties": {
        "enabledBrowserExtensions": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Specify the browser extensions allowed for your Amazon Q web experience. CHROME — Enables the extension for Chromium-based browsers (Google Chrome, Microsoft Edge, Opera, etc.). FIREFOX — Enables the extension for Mozilla Firefox. CHROME and FIREFOX — Enable the extension for Chromium-based browsers and Mozilla Firefox."
        }
      },
      "required": [
        "enabledBrowserExtensions"
      ]
    },
    "CustomizationConfiguration": {
      "type": "object",
      "properties": {
        "customCSSUrl": {
          "type": "string",
          "description": "Provides the URL where the custom CSS file is hosted for an Amazon Q web experience."
        },
        "logoUrl": {
          "type": "string",
          "description": "Provides the URL where the custom logo file is hosted for an Amazon Q web experience."
        },
        "fontUrl": {
          "type": "string",
          "description": "Provides the URL where the custom font file is hosted for an Amazon Q web experience."
        },
        "faviconUrl": {
          "type": "string",
          "description": "Provides the URL where the custom favicon file is hosted for an Amazon Q web experience."
        }
      }
    },
    "IdentityProviderConfiguration": {
      "type": "object",
      "properties": {
        "samlConfiguration": {
          "$ref": "#/$defs/SamlProviderConfiguration"
        },
        "openIDConnectConfiguration": {
          "$ref": "#/$defs/OpenIDConnectProviderConfiguration"
        }
      },
      "description": "Exactly one member is set."
    },
    "OpenIDConnectProviderConfiguration": {
      "type": "object",
      "properties": {
        "secretsArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of a Secrets Manager secret containing the OIDC client secret."
        },
        "secretsRole": {
          "type": "string",
          "description": "An IAM role with permissions to access KMS to decrypt the Secrets Manager secret containing your OIDC client secret."
        }
      },
      "required": [
        "secretsArn",
        "secretsRole"
      ]
    },
    "SamlConfiguration": {
      "type": "object",
      "properties": {
        "metadataXML": {
          "type": "string",
          "description": "The metadata XML that your IdP generated."
        },
        "roleArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of an IAM role assumed by users when they authenticate into their Amazon Q Business web experience, containing the relevant Amazon Q Business permissions for conversing with Amazon Q Business."
        },
        "userIdAttribute": {
          "type": "string",
          "description": "The user attribute name in your IdP that maps to the user email."
        },
        "userGroupAttribute": {
          "type": "string",
          "description": "The group attribute name in your IdP that maps to user groups."
        }
      },
      "required": [
        "metadataXML",
        "roleArn",
        "userIdAttribute"
      ]
    },
    "SamlProviderConfiguration": {
      "type": "object",
      "properties": {
        "authenticationUrl": {
          "type": "string",
          "description": "The URL where Amazon Q Business end users will be redirected for authentication."
        }
      },
      "required": [
        "authenticationUrl"
      ]
    },
    "WebExperienceAuthConfiguration": {
      "type": "object",
      "properties": {
        "samlConfiguration": {
          "$ref": "#/$defs/SamlConfiguration"
        }
      },
      "description": "Exactly one member is set."
    }
  }
}