Analytics Datasource
Fields
Analytics Datasource
name
description
type
postgresqlmysqlmssqlrest_apicsvexcelgoogle_sheetsconnectionConfig
Connection parameters (host, port, database, URL, ...). Secret-named fields (password, apiKey, token, bearerToken, accessToken, refreshToken, privateKey, clientSecret, secret) are transparently encrypted at rest using AES-256-GCM via ANALYTICS_DATASOURCE_KEY. API responses mask these fields as "***".
syncInterval
manualhourlydailyweeklysyncCron
Optional 5-field cron expression overriding syncInterval. Evaluated in UTC. When set, the scheduler uses this instead of the interval preset.
lastSyncAt
lastSyncStatus
successerrorrunninglastSyncError
lastSyncDurationMs
nextSyncAt
schemaMapping
transformRules
isActive
cachedRowCount
uploadMetadata
CSV/Excel-only: metadata about the latest uploaded file (Phase B). Filled by the upload-complete handler and consumed by the ingest job.
No fields match the filter.
Standard endpoints
This resource follows the platform's generic CRUD contract. Read the conventions for pagination, idempotency, optimistic locking and audit. The most important endpoints:
GET /api/v1/analytics_datasources— List, paginated + filterableGET /api/v1/analytics_datasources/<id>— Single entityPOST /api/v1/analytics_datasources— CreatePATCH /api/v1/analytics_datasources/<id>— Partial updateDELETE /api/v1/analytics_datasources/<id>— Soft deleteGET /api/v1/analytics_datasources/<id>/timeline— Audit + activities