{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-iot-sitewise/json-schema/amazon-iot-sitewise-update-portal-request-schema.json",
  "title": "UpdatePortalRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-iot-sitewise-portals-api-openapi.yml#/components/schemas/UpdatePortalRequest",
  "type": "object",
  "properties": {
    "portalId": {
      "type": "string",
      "description": "The ID of the portal to update."
    },
    "portalName": {
      "type": "string",
      "description": "A new friendly name for the portal."
    },
    "portalDescription": {
      "type": "string",
      "description": "A new description for the portal."
    },
    "portalContactEmail": {
      "type": "string",
      "description": "The Amazon Web Services administrator's contact email address."
    },
    "portalLogoImage": {
      "$ref": "#/$defs/Image"
    },
    "roleArn": {
      "type": "string",
      "description": "The ARN of a service role that allows the portal's users to access your IoT SiteWise resources on your behalf. For more information, see Using service roles for IoT SiteWise Monitor in the IoT SiteWise User Guide."
    },
    "clientToken": {
      "type": "string",
      "description": "A unique case-sensitive identifier that you can provide to ensure the idempotency of the request. Don't reuse this client token if a new idempotent request is required."
    },
    "notificationSenderEmail": {
      "type": "string",
      "description": "The email address that sends alarm notifications."
    },
    "alarms": {
      "$ref": "#/$defs/Alarms"
    },
    "portalType": {
      "type": "string",
      "enum": [
        "SITEWISE_PORTAL_V1",
        "SITEWISE_PORTAL_V2"
      ],
      "description": "Define the type of portal. The value for IoT SiteWise Monitor (Classic) is SITEWISE_PORTAL_V1. The value for IoT SiteWise Monitor (AI-aware) is SITEWISE_PORTAL_V2."
    },
    "portalTypeConfiguration": {
      "type": "object",
      "additionalProperties": {
        "$ref": "#/$defs/PortalTypeEntry"
      },
      "description": "The configuration entry associated with the specific portal type. The value for IoT SiteWise Monitor (Classic) is SITEWISE_PORTAL_V1. The value for IoT SiteWise Monitor (AI-aware) is SITEWISE_PORTAL_V2."
    }
  },
  "required": [
    "portalId",
    "portalName",
    "portalContactEmail",
    "roleArn"
  ],
  "$defs": {
    "Alarms": {
      "type": "object",
      "properties": {
        "alarmRoleArn": {
          "type": "string",
          "description": "The ARN of the IAM role that allows the alarm to perform actions and access Amazon Web Services resources and services, such as IoT Events."
        },
        "notificationLambdaArn": {
          "type": "string",
          "description": "The ARN of the Lambda function that manages alarm notifications. For more information, see Managing alarm notifications in the IoT Events Developer Guide."
        }
      },
      "required": [
        "alarmRoleArn"
      ]
    },
    "Image": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The ID of an existing image. Specify this parameter to keep an existing image."
        },
        "file": {
          "$ref": "#/$defs/ImageFile"
        }
      }
    },
    "ImageFile": {
      "type": "object",
      "properties": {
        "data": {
          "type": "string",
          "format": "byte",
          "description": "The image file contents, represented as a base64-encoded string. The file size must be less than 1 MB."
        },
        "type": {
          "type": "string",
          "enum": [
            "PNG"
          ],
          "description": "The file type of the image."
        }
      },
      "required": [
        "data",
        "type"
      ]
    },
    "PortalTypeEntry": {
      "type": "object",
      "properties": {
        "portalTools": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The array of tools associated with the specified portal type. The possible values are ASSISTANT and DASHBOARD."
        }
      }
    }
  }
}