{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/eloqua/json-schema/eloqua-sync-schema.json",
  "title": "Sync",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/eloqua-syncs-api-openapi.yml#/components/schemas/Sync",
  "type": "object",
  "required": [
    "syncedInstanceUri"
  ],
  "properties": {
    "uri": {
      "type": "string",
      "description": "URI of the sync",
      "readOnly": true
    },
    "syncedInstanceUri": {
      "type": "string",
      "description": "URI of the import or export definition to sync (e.g., /contacts/exports/1)"
    },
    "syncStartedAt": {
      "type": "string",
      "format": "date-time",
      "description": "When the sync started",
      "readOnly": true
    },
    "syncEndedAt": {
      "type": "string",
      "format": "date-time",
      "description": "When the sync completed",
      "readOnly": true
    },
    "status": {
      "type": "string",
      "enum": [
        "pending",
        "active",
        "success",
        "warning",
        "error"
      ],
      "description": "Current status of the sync",
      "readOnly": true
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "description": "Creation timestamp",
      "readOnly": true
    },
    "createdBy": {
      "type": "string",
      "description": "User who created the sync",
      "readOnly": true
    }
  }
}