{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-iot-sitewise/json-schema/amazon-iot-sitewise-update-dataset-request-schema.json",
  "title": "UpdateDatasetRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-iot-sitewise-datasets-api-openapi.yml#/components/schemas/UpdateDatasetRequest",
  "type": "object",
  "properties": {
    "datasetId": {
      "type": "string",
      "description": "The ID of the dataset."
    },
    "workspaceName": {
      "type": "string",
      "description": "The name of the workspace that contains the dataset."
    },
    "datasetName": {
      "type": "string",
      "description": "The name of the dataset."
    },
    "datasetDescription": {
      "type": "string",
      "description": "A description about the dataset, and its functionality."
    },
    "datasetConfig": {
      "$ref": "#/$defs/DatasetConfig"
    },
    "metadata": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "The updated metadata for the dataset."
    },
    "datasetSource": {
      "$ref": "#/$defs/DatasetSource"
    },
    "clientToken": {
      "type": "string",
      "description": "A unique case-sensitive identifier that you can provide to ensure the idempotency of the request. Don't reuse this client token if a new idempotent request is required."
    }
  },
  "required": [
    "datasetId",
    "datasetName",
    "datasetSource"
  ],
  "$defs": {
    "DatasetConfig": {
      "type": "object",
      "properties": {
        "session": {
          "$ref": "#/$defs/SessionConfig"
        }
      }
    },
    "DatasetSource": {
      "type": "object",
      "properties": {
        "sourceType": {
          "type": "string",
          "enum": [
            "KENDRA",
            "SITEWISE"
          ],
          "description": "The type of data source for the dataset."
        },
        "sourceFormat": {
          "type": "string",
          "enum": [
            "KNOWLEDGE_BASE",
            "TIMESERIES"
          ],
          "description": "The format of the dataset source associated with the dataset."
        },
        "sourceDetail": {
          "$ref": "#/$defs/SourceDetail"
        }
      },
      "required": [
        "sourceType",
        "sourceFormat"
      ]
    },
    "KendraSourceDetail": {
      "type": "object",
      "properties": {
        "knowledgeBaseArn": {
          "type": "string",
          "description": "The knowledgeBaseArn details for the Kendra dataset source."
        },
        "roleArn": {
          "type": "string",
          "description": "The roleARN details for the Kendra dataset source."
        }
      },
      "required": [
        "knowledgeBaseArn",
        "roleArn"
      ]
    },
    "SessionConfig": {
      "type": "object",
      "properties": {
        "sessionStartTimestamp": {
          "$ref": "#/$defs/TimeInNanos"
        },
        "sessionEndTimestamp": {
          "$ref": "#/$defs/TimeInNanos"
        }
      },
      "required": [
        "sessionStartTimestamp",
        "sessionEndTimestamp"
      ]
    },
    "SourceDetail": {
      "type": "object",
      "properties": {
        "kendra": {
          "$ref": "#/$defs/KendraSourceDetail"
        }
      }
    },
    "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"
      ]
    }
  }
}