{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-quicksight/json-schema/amazon-quicksight-update-agent-response-schema.json",
  "title": "UpdateAgentResponse",
  "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/UpdateAgentResponse",
  "type": "object",
  "properties": {
    "Arn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the agent."
    },
    "AgentId": {
      "type": "string",
      "description": "The unique identifier for the agent."
    },
    "AgentStatus": {
      "type": "string",
      "enum": [
        "ACTIVE",
        "UPDATING",
        "FAILED",
        "CREATING"
      ],
      "description": "The status of the agent."
    },
    "FailedToAddSpaces": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/FailedToUpdateAssociation"
      },
      "description": "A list of per-ARN failures from the spaces that were requested to be added."
    },
    "FailedToRemoveSpaces": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/FailedToUpdateAssociation"
      },
      "description": "A list of per-ARN failures from the spaces that were requested to be removed."
    },
    "FailedToAddActionConnectors": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/FailedToUpdateAssociation"
      },
      "description": "A list of per-ARN failures from the action connectors that were requested to be added."
    },
    "FailedToRemoveActionConnectors": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/FailedToUpdateAssociation"
      },
      "description": "A list of per-ARN failures from the action connectors that were requested to be removed."
    },
    "RequestId": {
      "type": "string",
      "description": "The Amazon Web Services request ID for this operation."
    }
  },
  "required": [
    "Arn",
    "AgentId",
    "AgentStatus"
  ],
  "$defs": {
    "FailedToUpdateAssociation": {
      "type": "object",
      "properties": {
        "Arn": {
          "type": "string",
          "description": "The ARN that could not be added or removed."
        },
        "ErrorMessage": {
          "type": "string",
          "description": "A description of the failure."
        },
        "ErrorCode": {
          "type": "string",
          "description": "The error code for the failure."
        }
      }
    }
  }
}