API · v1 · stable
CODEMETA OSDeveloper Center
EN
Open console
Entity · analytics_datasources

Analytics Datasource

Schema ID
analytics_datasource
Collection
analytics_datasources
Permissions
  • Readanalytics_datasource_view
  • Createanalytics_datasource_create
  • Editanalytics_datasource_edit
  • Deleteanalytics_datasource_delete

Fields

Analytics Datasource

analytics_datasources4 permissions
namestringrequired
1–200 characters
descriptionstringoptional
max 2000 charactersnullable
typestringrequired
postgresqlmysqlmssqlrest_apicsvexcelgoogle_sheets
connectionConfigobjectoptional

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 "***".

nullable
syncIntervalstringoptional
manualhourlydailyweekly
Default: "daily"
syncCronstringoptional

Optional 5-field cron expression overriding syncInterval. Evaluated in UTC. When set, the scheduler uses this instead of the interval preset.

max 100 charactersnullable
lastSyncAtdatetimeoptional
read-onlynullable
lastSyncStatusstringoptional
successerrorrunning
read-onlynullable
lastSyncErrorstringoptional
max 2000 charactersread-onlynullable
lastSyncDurationMsintegeroptional
≥ 0read-onlynullable
nextSyncAtdatetimeoptional
read-onlynullable
schemaMappingobject[]optional
Default: []nullable
transformRulesobject[]optional
Default: []nullable
isActivebooleanoptional
Default: true
cachedRowCountintegeroptional
≥ 0read-onlynullable
uploadMetadataobjectoptional

CSV/Excel-only: metadata about the latest uploaded file (Phase B). Filled by the upload-complete handler and consumed by the ingest job.

read-onlynullable
fileKeystringoptional
originalFileNamestringoptional
rowCountintegeroptional
≥ 0
columnSamplestring[]optional
delimiterstringoptional
encodingstringoptional
hasHeaderbooleanoptional

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 + filterable
  • GET /api/v1/analytics_datasources/<id> — Single entity
  • POST /api/v1/analytics_datasources — Create
  • PATCH /api/v1/analytics_datasources/<id> — Partial update
  • DELETE /api/v1/analytics_datasources/<id> — Soft delete
  • GET /api/v1/analytics_datasources/<id>/timeline — Audit + activities

Search