{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/mantic/json-schema/mantic-conversation-patch-request-schema.json",
  "title": "ConversationPatchRequest",
  "description": "Body for ``PATCH /webapp/conversations/{id}`` — partial update.\n\nAll fields optional. ``title`` set to empty string clears the title.\nWhen ``context_kind`` is provided the conversation is re-anchored\n(``general`` requires a null entity; ``question`` requires an entity id).",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/mantic-conversations-api-openapi.yml#/components/schemas/ConversationPatchRequest",
  "properties": {
    "title": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 200
        },
        {
          "type": "null"
        }
      ],
      "title": "Title"
    },
    "context_kind": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "general",
            "question"
          ]
        },
        {
          "type": "null"
        }
      ],
      "title": "Context Kind"
    },
    "context_entity_id": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Context Entity Id"
    }
  },
  "type": "object"
}