{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/asap-cool/json-schema/asap-cool-create-kb-document-request-schema.json",
  "title": "CreateKbDocumentRequest",
  "description": "Body for `POST /v1/agents/{id}/kb/documents`.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/asap-cool-agents-api-openapi.yml#/components/schemas/CreateKbDocumentRequest",
  "type": "object",
  "required": [
    "title",
    "content_md"
  ],
  "properties": {
    "content_md": {
      "type": "string",
      "description": "Document body as Markdown."
    },
    "source_url": {
      "type": [
        "string",
        "null"
      ],
      "description": "Optional source URL."
    },
    "title": {
      "type": "string",
      "description": "Title (1–200 chars)."
    }
  }
}