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