{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/robosystems-ai/json-schema/robosystems-ai-sync-connection-request-schema.json",
  "title": "SyncConnectionRequest",
  "description": "Request to sync a connection.",
  "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/SyncConnectionRequest",
  "properties": {
    "full_rebuild": {
      "type": "boolean",
      "title": "Full Rebuild",
      "description": "Pull complete history from the provider, ignoring lookback window. Takes precedence over since_date.",
      "default": false
    },
    "since_date": {
      "anyOf": [
        {
          "type": "string",
          "format": "date"
        },
        {
          "type": "null"
        }
      ],
      "title": "Since Date",
      "description": "Sync data from this date forward (ISO 8601). Ignored if full_rebuild=True. If neither set, provider default applies (e.g., QuickBooks: 60 days)."
    },
    "sync_options": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Sync Options",
      "description": "Provider-specific sync options (escape hatch for fields not exposed at the top level)."
    }
  },
  "additionalProperties": false,
  "type": "object"
}