{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-healthimaging/json-schema/amazon-healthimaging-copy-image-set-request-schema.json",
  "title": "CopyImageSetRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-healthimaging-datastore-api-openapi.yml#/components/schemas/CopyImageSetRequest",
  "type": "object",
  "properties": {
    "datastoreId": {
      "type": "string",
      "description": "The data store identifier."
    },
    "sourceImageSetId": {
      "type": "string",
      "description": "The source image set identifier."
    },
    "copyImageSetInformation": {
      "$ref": "#/$defs/CopyImageSetInformation"
    },
    "force": {
      "type": "boolean",
      "description": "Providing this parameter will force completion of the CopyImageSet operation, even if there are inconsistent Patient, Study, and/or Series level metadata elements between the sourceImageSet and destinationImageSet."
    },
    "promoteToPrimary": {
      "type": "boolean",
      "description": "Providing this parameter will configure the CopyImageSet operation to promote the given image set to the primary DICOM hierarchy. If successful, a new primary image set ID will be returned as the destination image set."
    }
  },
  "required": [
    "datastoreId",
    "sourceImageSetId",
    "copyImageSetInformation"
  ],
  "$defs": {
    "CopyDestinationImageSet": {
      "type": "object",
      "properties": {
        "imageSetId": {
          "type": "string",
          "description": "The image set identifier for the destination image set."
        },
        "latestVersionId": {
          "type": "string",
          "description": "The latest version identifier for the destination image set."
        }
      },
      "required": [
        "imageSetId",
        "latestVersionId"
      ]
    },
    "CopyImageSetInformation": {
      "type": "object",
      "properties": {
        "sourceImageSet": {
          "$ref": "#/$defs/CopySourceImageSetInformation"
        },
        "destinationImageSet": {
          "$ref": "#/$defs/CopyDestinationImageSet"
        }
      },
      "required": [
        "sourceImageSet"
      ]
    },
    "CopySourceImageSetInformation": {
      "type": "object",
      "properties": {
        "latestVersionId": {
          "type": "string",
          "description": "The latest version identifier for the source image set."
        },
        "DICOMCopies": {
          "$ref": "#/$defs/MetadataCopies"
        }
      },
      "required": [
        "latestVersionId"
      ]
    },
    "MetadataCopies": {
      "type": "object",
      "properties": {
        "copiableAttributes": {
          "type": "string",
          "description": "The JSON string used to specify a subset of SOP Instances to copy from source to destination image set."
        }
      },
      "required": [
        "copiableAttributes"
      ]
    }
  }
}