{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/robosystems-ai/json-schema/robosystems-ai-set-write-policy-request-schema.json",
  "title": "SetWritePolicyRequest",
  "description": "Request to set a connection's source-of-truth write policy.\n\nThe explicit operator opt-in for outbound write-back. `hybrid` is omitted\nuntil its code path ships.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/robosystems-ai-connections-api-openapi.yml#/components/schemas/SetWritePolicyRequest",
  "properties": {
    "write_policy": {
      "type": "string",
      "enum": [
        "qb_authoritative",
        "shadow"
      ],
      "title": "Write Policy",
      "description": "'qb_authoritative' = QuickBooks authoritative, entries publish to QB; 'shadow' = QuickBooks authoritative and RoboSystems only observes: nothing is written to QuickBooks, the close posts nothing locally, its drafts become shadowed expectations and its gates are findings. 'native', books kept in RoboSystems with no write-back, is what disconnecting or severing leaves, not a choice for a live connection."
    }
  },
  "type": "object",
  "required": [
    "write_policy"
  ]
}