{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-iot-sitewise/json-schema/amazon-iot-sitewise-batch-disassociate-data-segments-from-dataset-request-schema.json",
  "title": "BatchDisassociateDataSegmentsFromDatasetRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-iot-sitewise-data-segments-api-openapi.yml#/components/schemas/BatchDisassociateDataSegmentsFromDatasetRequest",
  "type": "object",
  "properties": {
    "datasetId": {
      "type": "string",
      "description": "The ID of the curated dataset to disassociate data segments from."
    },
    "workspaceName": {
      "type": "string",
      "description": "The name of the workspace that contains the dataset."
    },
    "disassociateDataSegmentEntries": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/DisassociateDataSegmentEntry"
      },
      "description": "The list of data segment entries to disassociate from the dataset."
    },
    "clientToken": {
      "type": "string",
      "description": "A unique, case-sensitive identifier that you provide to ensure that the request is idempotent. If you retry a request that completed successfully using the same client token, the retry succeeds without performing any further actions."
    }
  },
  "required": [
    "datasetId",
    "workspaceName",
    "disassociateDataSegmentEntries"
  ],
  "$defs": {
    "DisassociateDataSegmentEntry": {
      "type": "object",
      "properties": {
        "sourceDatasetId": {
          "type": "string",
          "description": "The ID of the source dataset that contains the data segment."
        },
        "timeSeriesId": {
          "type": "string",
          "description": "The ID of the time series."
        },
        "startTimestamp": {
          "$ref": "#/$defs/TimeInNanos"
        },
        "endTimestamp": {
          "$ref": "#/$defs/TimeInNanos"
        }
      },
      "required": [
        "sourceDatasetId",
        "timeSeriesId",
        "startTimestamp",
        "endTimestamp"
      ]
    },
    "TimeInNanos": {
      "type": "object",
      "properties": {
        "timeInSeconds": {
          "type": "integer",
          "description": "The timestamp date, in seconds, in the Unix epoch format. Fractional nanosecond data is provided by offsetInNanos."
        },
        "offsetInNanos": {
          "type": "integer",
          "description": "The nanosecond offset from timeInSeconds."
        }
      },
      "required": [
        "timeInSeconds"
      ]
    }
  }
}