{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/adobe/json-schema/adobe-data-set-response-schema.json",
  "title": "dataSetResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/adobe-aep-catalog-openapi.yml#/components/schemas/dataSetResponse",
  "type": "object",
  "properties": {
    "version": {
      "type": "string",
      "description": "The Semantic version of the dataset. Updated when the dataset is modified.",
      "readOnly": true
    },
    "imsOrg": {
      "type": "string",
      "description": "The owning organization identifier."
    },
    "name": {
      "type": "string",
      "description": "A descriptive, human-readable name for this dataset."
    },
    "description": {
      "type": "string",
      "description": "A longer text description of the dataset."
    },
    "created": {
      "type": "integer",
      "description": "The Unix timestamp (in milliseconds) when this dataset was persisted.",
      "format": "int64",
      "readOnly": true
    },
    "updated": {
      "type": "integer",
      "description": "The Unix timestamp (in milliseconds) for the time of last modification.",
      "format": "int64",
      "readOnly": true
    },
    "createdClient": {
      "type": "string",
      "description": "The ID of the IMS client that created this Batch.",
      "readOnly": true
    },
    "createdUser": {
      "type": "string",
      "description": "The ID of the user who created this object.",
      "readOnly": true
    },
    "updatedUser": {
      "type": "string",
      "description": "The ID of the user who changed this object.",
      "readOnly": true
    },
    "viewId": {
      "type": "string",
      "description": "The ID for associated dataset view."
    },
    "observableSchema": {
      "type": "object",
      "properties": {},
      "description": "observableSchema stores a JSON Schema object that is a valid subset (including the null case) of the XDM model specified by `schemaRef`."
    },
    "basePath": {
      "type": "string",
      "description": "Fully qualified base path for all dataset files associated with this view. For views cached in a database (HBase or Cassandra), supply a templatized DSN.",
      "readOnly": true
    },
    "fileDescription": {
      "type": "object",
      "properties": {
        "format": {
          "$ref": "#/$defs/format"
        },
        "delimiters": {
          "type": "array",
          "description": "Characters used to separate fields.",
          "items": {
            "maxLength": 1,
            "type": "string"
          }
        },
        "quotes": {
          "type": "array",
          "description": "",
          "items": {
            "type": "string"
          }
        },
        "escapes": {
          "type": "array",
          "description": "",
          "items": {
            "type": "string"
          }
        },
        "nullMarkers": {
          "type": "array",
          "description": "",
          "items": {
            "type": "string"
          }
        },
        "header": {
          "type": "boolean",
          "description": ""
        },
        "charset": {
          "type": "string",
          "description": "The character encoding of the files.",
          "enum": [
            "US-ASCII",
            "UTF-8",
            "ISO-8859-1",
            ""
          ]
        }
      },
      "description": "Metadata describing the dataset files associated with this DatasetView."
    },
    "schema": {
      "type": "string",
      "description": "This is the uri for the XDM model"
    },
    "schemaRef": {
      "$ref": "#/$defs/schemaRef"
    },
    "files": {
      "type": "string",
      "description": "Associated files for given dataset in following string format dataSets/{dataSetId}/views/{dataSetViewId}/files. By using query parameter 'expansion=files', this object can be requested as part of response."
    },
    "tags": {
      "type": "object",
      "additionalProperties": {
        "type": "array",
        "items": {
          "type": "string"
        }
      },
      "description": "Tags are values associated with a particular object, these are generally used by external systems for marking an object in a way that it understands. Normally tags are not used for internal Catalog business logic"
    },
    "lastBatchId": {
      "type": "string",
      "description": "The ID of the last batch that modified the data set (only modified by Siphon batch ingest)."
    },
    "lastBatchStatus": {
      "$ref": "#/$defs/batchStatus"
    },
    "lastSuccessfulBatch": {
      "type": "string",
      "description": "The ID of the last successful batch that has modified this dataset (only modified by Siphon batch ingest)."
    },
    "lastFailedBatch": {
      "type": "string",
      "description": "The ID of the last failed batch that has modified this dataset (only modified by Siphon batch ingest)."
    },
    "dataSourceId": {
      "type": "integer",
      "description": "The ID of the data source. It must be unique, along with its name."
    },
    "persistence": {
      "$ref": "#/$defs/persistenceResponse"
    }
  },
  "$defs": {
    "batchStatus": {
      "type": "string",
      "description": "The status of the last batch.",
      "enum": [
        "processing",
        "success",
        "failure",
        "queued",
        "retrying",
        "stalled",
        "aborted",
        "abandoned",
        "inactive",
        "failed",
        "loading",
        "loaded",
        "staged",
        "active",
        "staging",
        "deleted"
      ]
    },
    "format": {
      "type": "string",
      "description": "The file format for all dataSetFiles associated with this view. Required for CSV upload workflows, but optional in all other cases.",
      "enum": [
        "",
        "csv",
        "text",
        "parquet",
        "json",
        "sequencefile",
        "avro"
      ]
    },
    "persistenceResponse": {
      "type": "object",
      "properties": {
        "adls": {
          "type": "object",
          "properties": {
            "location": {
              "type": "string",
              "description": "Filter by the fully qualified base path for all dataset files associated with this view. For views cached in a database (HBase or Cassandra), supply a templatized DSN. Its value is same as the basePath field."
            },
            "adlsType": {
              "type": "object",
              "description": "ADLS generation type 1 or 2.",
              "readOnly": true
            },
            "credentials": {
              "type": "string",
              "description": "This property represents the relative URI for persistence credentials of this dataset, for e.g. @/dataSets/{id}/credentials."
            }
          },
          "description": "This object represents adls storage path for dataSets.",
          "readOnly": true
        },
        "datastream": {
          "type": "object",
          "properties": {
            "source": {
              "type": "string",
              "description": "This property represents the source of dataStream."
            }
          },
          "description": "This object represents stream persistence type for dataSets."
        }
      },
      "description": "Persistence object holds meta data of different persistence type supported by a dataset."
    },
    "schemaRef": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "ID contains full URL path for XDM schema."
        },
        "contentType": {
          "type": "string",
          "description": "contentType represents XDM schema version and type of schema."
        }
      },
      "description": "This is the full URL for XDM schema path. This field will be derived from schema field, if it is not present. This field will be used to annotate XDM schema version used in the dataSet or dataSetView."
    }
  }
}