{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-connect/json-schema/amazon-connect-batch-update-case-request-schema.json",
  "title": "BatchUpdateCaseRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-connect-operations-api-openapi.yml#/components/schemas/BatchUpdateCaseRequest",
  "type": "object",
  "properties": {
    "domainId": {
      "type": "string",
      "description": "The unique identifier of the Cases domain."
    },
    "cases": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/BatchUpdateCaseIdentifier"
      },
      "description": "The list of cases to update. All cases must belong to the same domain."
    },
    "fields": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/FieldValueInput"
      },
      "description": "An array of objects, each with a fieldIdentifier and a value. You can identify each field by its ID or by its name; identifying a field by name is supported only in BatchUpdateCase. The same field values are applied to every case in the request. This field must be present, but can be an empty list when you provide the top-level title, status, or customerId parameters. Do not include title, status, or customerId in this list; set those values only through their top-level parameters. Duplicating them in fields results in a validation error."
    },
    "performedBy": {
      "$ref": "#/$defs/UserUnion"
    },
    "title": {
      "type": "string",
      "description": "The title to apply to all cases in the request."
    },
    "status": {
      "type": "string",
      "description": "The status to apply to all cases in the request."
    },
    "customerId": {
      "type": "string",
      "description": "The ARN of the customer profile to associate with all cases in the request."
    },
    "clientToken": {
      "type": "string",
      "description": "A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs. If you retry a request with the same client token, the service returns the original response instead of processing the request again. If you reuse a client token with different request parameters, the request fails with a ConflictException."
    }
  },
  "required": [
    "domainId",
    "cases",
    "fields"
  ],
  "$defs": {
    "BatchUpdateCaseIdentifier": {
      "type": "object",
      "properties": {
        "caseIdentifier": {
          "$ref": "#/$defs/CaseIdentifierUnion"
        }
      },
      "required": [
        "caseIdentifier"
      ]
    },
    "CaseIdentifierUnion": {
      "type": "object",
      "properties": {
        "caseId": {
          "type": "string",
          "description": "The unique identifier of the case."
        },
        "referenceId": {
          "type": "string",
          "description": "The reference ID of the case. Reference IDs are unique within a domain, and uniqueness isn't case sensitive."
        }
      },
      "description": "Exactly one member is set."
    },
    "CasesFieldValueUnion": {
      "type": "object",
      "properties": {
        "stringValue": {
          "type": "string",
          "description": "String value type."
        },
        "doubleValue": {
          "type": "number",
          "description": "Can be either null, or have a Double number value type. Only one value can be provided."
        },
        "booleanValue": {
          "type": "boolean",
          "description": "Can be either null, or have a Boolean value type. Only one value can be provided."
        },
        "emptyValue": {
          "$ref": "#/$defs/EmptyFieldValue"
        },
        "userArnValue": {
          "type": "string",
          "description": "Represents the user that performed the audit."
        }
      },
      "description": "Exactly one member is set."
    },
    "EmptyFieldValue": {
      "type": "object",
      "properties": {}
    },
    "FieldIdentifierUnion": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The unique identifier of the field."
        },
        "name": {
          "type": "string",
          "description": "The name of the field."
        }
      },
      "description": "Exactly one member is set."
    },
    "FieldValueInput": {
      "type": "object",
      "properties": {
        "fieldIdentifier": {
          "$ref": "#/$defs/FieldIdentifierUnion"
        },
        "value": {
          "$ref": "#/$defs/CasesFieldValueUnion"
        }
      },
      "required": [
        "fieldIdentifier",
        "value"
      ]
    },
    "UserUnion": {
      "type": "object",
      "properties": {
        "userArn": {
          "type": "string",
          "description": "Represents the Connect Customer ARN of the user."
        },
        "customEntity": {
          "type": "string",
          "description": "Any provided entity."
        }
      },
      "description": "Exactly one member is set."
    }
  }
}