{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/brain-tube-com/json-schema/brain-tube-com-bulk-ingest-request-schema.json",
  "title": "BulkIngestRequest",
  "x-generated": "2026-11-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/brain-tube-com-api-openapi.json#/components/schemas/BulkIngestRequest",
  "type": "object",
  "required": [
    "items"
  ],
  "properties": {
    "items": {
      "type": "array",
      "maxItems": 50,
      "items": {
        "$ref": "#/$defs/IngestRequest"
      }
    },
    "force_new": {
      "type": "boolean",
      "default": false
    }
  },
  "$defs": {
    "IngestRequest": {
      "type": "object",
      "required": [
        "title",
        "content"
      ],
      "properties": {
        "title": {
          "type": "string",
          "maxLength": 500
        },
        "content": {
          "type": "string",
          "description": "Full text body of the content"
        },
        "source_url": {
          "type": "string",
          "format": "uri"
        },
        "source_type": {
          "type": "string",
          "enum": [
            "note",
            "manual",
            "article",
            "web",
            "document",
            "pdf",
            "ebook",
            "research_paper",
            "work",
            "reddit",
            "medium",
            "substack",
            "github",
            "notion",
            "chatgpt",
            "claude",
            "gemini",
            "wikipedia"
          ]
        },
        "tags": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "maxItems": 20
        },
        "force_new": {
          "type": "boolean",
          "default": false
        }
      }
    }
  }
}