{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/databox-technology/json-schema/databox-technology-post-v2-datasets-request-schema.json",
  "title": "PostV2DatasetsRequest",
  "x-generated": "2026-11-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/databox-technology-openapi-generated.yml#/components/schemas/PostV2DatasetsRequest",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "Dataset name (formerly title)."
    },
    "dataSourceId": {
      "type": "integer",
      "description": "Identifier of the data source."
    },
    "primaryKey": {
      "type": "array",
      "description": "Array of column IDs used as primary keys."
    },
    "schema": {
      "type": "array",
      "description": "Column definitions, each with id and dataType (string, number, datetime)."
    }
  },
  "required": [
    "name",
    "dataSourceId",
    "primaryKey",
    "schema"
  ]
}