{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/standards-new/json-schema/standards-new-create-document-dto-schema.json",
  "title": "CreateDocumentDto",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/standards-new-openapi.json#/components/schemas/CreateDocumentDto",
  "type": "object",
  "properties": {
    "title": {
      "type": "string",
      "description": "Document title."
    },
    "objectName": {
      "type": "string",
      "description": "Object the source record belongs to."
    },
    "sourceRecordId": {
      "type": "string",
      "format": "uuid",
      "description": "Record the document is attached to."
    },
    "attributeName": {
      "type": "string",
      "description": "Document attribute of the record the document lives under."
    },
    "parentId": {
      "type": [
        "string",
        "null"
      ],
      "description": "Parent folder ID; null for the drive root."
    },
    "kind": {
      "type": "string",
      "enum": [
        "file",
        "folder"
      ],
      "default": "file"
    },
    "description": {
      "type": "string"
    },
    "position": {
      "type": "number",
      "description": "Sort position among siblings."
    },
    "properties": {
      "type": "object",
      "additionalProperties": true,
      "description": "Qualified properties (`qualifyWith`) of the edge to the source record, written in the same insert."
    }
  },
  "required": [
    "title",
    "objectName",
    "sourceRecordId",
    "attributeName"
  ]
}