{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-healthimaging/json-schema/amazon-healthimaging-update-image-set-metadata-request-schema.json",
  "title": "UpdateImageSetMetadataRequest",
  "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/UpdateImageSetMetadataRequest",
  "type": "object",
  "properties": {
    "datastoreId": {
      "type": "string",
      "description": "The data store identifier."
    },
    "imageSetId": {
      "type": "string",
      "description": "The image set identifier."
    },
    "latestVersionId": {
      "type": "string",
      "description": "The latest image set version identifier."
    },
    "force": {
      "type": "boolean",
      "description": "Setting this flag will force the UpdateImageSetMetadata operation for the following attributes: Tag.StudyInstanceUID, Tag.SeriesInstanceUID, Tag.SOPInstanceUID, and Tag.StudyID Adding, removing, or updating private tags for an individual SOP Instance"
    },
    "includeStudyImageSets": {
      "type": "boolean",
      "description": "Flag to apply the metadata updates to all image sets in the same Study as the requested image set ID."
    },
    "updateImageSetMetadataUpdates": {
      "$ref": "#/$defs/MetadataUpdates"
    }
  },
  "required": [
    "datastoreId",
    "imageSetId",
    "latestVersionId",
    "updateImageSetMetadataUpdates"
  ],
  "$defs": {
    "DICOMUpdates": {
      "type": "object",
      "properties": {
        "removableAttributes": {
          "type": "string",
          "format": "byte",
          "description": "The DICOM tags to be removed from ImageSetMetadata."
        },
        "updatableAttributes": {
          "type": "string",
          "format": "byte",
          "description": "The DICOM tags that need to be updated in ImageSetMetadata."
        }
      }
    },
    "MetadataUpdates": {
      "type": "object",
      "properties": {
        "DICOMUpdates": {
          "$ref": "#/$defs/DICOMUpdates"
        },
        "revertToVersionId": {
          "type": "string",
          "description": "Specifies the previous image set version ID to revert the current image set back to. You must provide either revertToVersionId or DICOMUpdates in your request. A ValidationException error is thrown if both parameters are provided at the same time."
        }
      },
      "description": "Exactly one member is set."
    }
  }
}