{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-quicksight/json-schema/amazon-quicksight-update-agent-request-schema.json",
  "title": "UpdateAgentRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-quicksight-agents-api-openapi.yml#/components/schemas/UpdateAgentRequest",
  "type": "object",
  "properties": {
    "AgentId": {
      "type": "string",
      "description": "The unique identifier for the agent to update."
    },
    "AwsAccountId": {
      "type": "string",
      "description": "The ID of the Amazon Web Services account that contains the agent."
    },
    "Name": {
      "type": "string",
      "description": "The name of the agent."
    },
    "Description": {
      "type": "string",
      "description": "A description of the agent."
    },
    "IconId": {
      "type": "string",
      "description": "The icon identifier for the agent."
    },
    "StarterPrompts": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "A list of starter prompts that are displayed to users when they begin interacting with the agent."
    },
    "WelcomeMessage": {
      "type": "string",
      "description": "The welcome message that is displayed when a user starts a conversation with the agent."
    },
    "CustomPromptInput": {
      "$ref": "#/$defs/CustomPromptInput"
    },
    "SpacesToAdd": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The Amazon Resource Names (ARNs) of the spaces to attach to the agent."
    },
    "SpacesToRemove": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The Amazon Resource Names (ARNs) of the spaces to detach from the agent."
    },
    "ActionConnectorsToAdd": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The Amazon Resource Names (ARNs) of the action connectors to attach to the agent."
    },
    "ActionConnectorsToRemove": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The Amazon Resource Names (ARNs) of the action connectors to detach from the agent."
    }
  },
  "required": [
    "AgentId",
    "AwsAccountId",
    "Name"
  ],
  "$defs": {
    "CustomPromptInput": {
      "type": "object",
      "properties": {
        "ExistingPrompt": {
          "$ref": "#/$defs/CustomPromptProfile"
        },
        "NewPrompt": {
          "$ref": "#/$defs/CustomPromptInputParameters"
        }
      },
      "description": "Exactly one member is set."
    },
    "CustomPromptInputParameters": {
      "type": "object",
      "properties": {
        "ResponseLength": {
          "type": "string",
          "description": "Instructions for the desired response length."
        },
        "OutputStyle": {
          "type": "string",
          "description": "Instructions for the desired output style."
        },
        "Identity": {
          "type": "string",
          "description": "Instructions that define the agent's identity and persona."
        },
        "Tone": {
          "type": "string",
          "description": "Instructions for the desired tone of responses."
        },
        "CustomInstructions": {
          "type": "string",
          "description": "Custom instructions for the agent's behavior."
        }
      }
    },
    "CustomPromptProfile": {
      "type": "object",
      "properties": {
        "ModelProfileId": {
          "type": "string",
          "description": "The identifier of the model profile."
        },
        "SubscriptionId": {
          "type": "string",
          "description": "The subscription identifier."
        },
        "QbsAwsAccountId": {
          "type": "string",
          "description": "The Amazon Web Services account ID for the Q Business service."
        }
      },
      "required": [
        "ModelProfileId",
        "SubscriptionId",
        "QbsAwsAccountId"
      ]
    }
  }
}