{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-connect/json-schema/amazon-connect-update-contact-evaluation-request-schema.json",
  "title": "UpdateContactEvaluationRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-connect-contact-evaluations-api-openapi.yml#/components/schemas/UpdateContactEvaluationRequest",
  "type": "object",
  "properties": {
    "InstanceId": {
      "type": "string",
      "description": "The identifier of the Connect Customer instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance."
    },
    "EvaluationId": {
      "type": "string",
      "description": "A unique identifier for the contact evaluation."
    },
    "Answers": {
      "type": "object",
      "additionalProperties": {
        "$ref": "#/$defs/EvaluationAnswerInput"
      },
      "description": "A map of question identifiers to answer value."
    },
    "Notes": {
      "type": "object",
      "additionalProperties": {
        "$ref": "#/$defs/EvaluationNote"
      },
      "description": "A map of question identifiers to note value."
    },
    "UpdatedBy": {
      "$ref": "#/$defs/EvaluatorUserUnion"
    }
  },
  "required": [
    "InstanceId",
    "EvaluationId"
  ],
  "$defs": {
    "EvaluationAnswerData": {
      "type": "object",
      "properties": {
        "StringValue": {
          "type": "string",
          "description": "The string value for an answer in a contact evaluation."
        },
        "NumericValue": {
          "type": "number",
          "description": "The numeric value for an answer in a contact evaluation."
        },
        "StringValues": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "String values provided as answers to evaluation questions."
        },
        "DateTimeValue": {
          "type": "string",
          "description": "Date and time value provided as an answer to an evaluation question."
        },
        "NotApplicable": {
          "type": "boolean",
          "description": "The flag to mark the question as not applicable."
        }
      },
      "description": "Exactly one member is set."
    },
    "EvaluationAnswerInput": {
      "type": "object",
      "properties": {
        "Value": {
          "$ref": "#/$defs/EvaluationAnswerData"
        }
      }
    },
    "EvaluationNote": {
      "type": "object",
      "properties": {
        "Value": {
          "type": "string",
          "description": "The note for an item (section or question) in a contact evaluation. Even though a note in an evaluation can have up to 3072 chars, there is also a limit on the total number of chars for all the notes in the evaluation combined. Assuming there are N questions in the evaluation being submitted, then the max char limit for all notes combined is N x 1024."
        }
      }
    },
    "EvaluatorUserUnion": {
      "type": "object",
      "properties": {
        "ConnectUserArn": {
          "type": "string",
          "description": "Represents the Connect Customer ARN of the user."
        }
      },
      "description": "Exactly one member is set."
    }
  }
}