{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/xmemory/main/json-schema/xmemory-post-instances-instanceid-write-async-request-schema.json",
  "title": "PostInstancesInstanceidWriteAsyncRequest",
  "x-generated": "2026-10-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/xmemory-openapi-generated.yml#/components/schemas/PostInstancesInstanceidWriteAsyncRequest",
  "type": "object",
  "properties": {
    "text": {
      "type": "string",
      "description": "Free-form text to extract from. Exactly one of text / structured_mutations must be provided."
    },
    "structured_mutations": {
      "type": "array",
      "description": "Ordered list of deterministic, LLM‑free create/update/delete mutations."
    },
    "extraction_logic": {
      "type": "string",
      "description": "\"fast\" (default) or \"deep\"."
    },
    "trace_id": {
      "type": "string",
      "description": "Caller‑supplied ID echoed back for log correlation."
    },
    "session_id": {
      "type": "string",
      "description": "Session ID for tracing."
    },
    "use_diff_engine": {
      "type": "boolean",
      "description": "Override diff‑engine setting."
    },
    "scope": {
      "type": "object",
      "description": "Anchor a text write to specific existing records."
    }
  }
}