API · v1 · stabiel
CODEMETA OSDeveloper Center
NL
Console openen
Entity · analytics_datasources

Analytics Datasource

Schema-ID
analytics_datasource
Collection
analytics_datasources
Permissions
  • Lezenanalytics_datasource_view
  • Aanmakenanalytics_datasource_create
  • Wijzigenanalytics_datasource_edit
  • Verwijderenanalytics_datasource_delete

Velden

Analytics Datasource

analytics_datasources4 permissions
namestringvereist
1–200 tekens
descriptionstringoptioneel
max. 2000 tekensnullable
typestringvereist
postgresqlmysqlmssqlrest_apicsvexcelgoogle_sheets
connectionConfigobjectoptioneel

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
syncIntervalstringoptioneel
manualhourlydailyweekly
Default: "daily"
syncCronstringoptioneel

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

max. 100 tekensnullable
lastSyncAtdatetimeoptioneel
read-onlynullable
lastSyncStatusstringoptioneel
successerrorrunning
read-onlynullable
lastSyncErrorstringoptioneel
max. 2000 tekensread-onlynullable
lastSyncDurationMsintegeroptioneel
≥ 0read-onlynullable
nextSyncAtdatetimeoptioneel
read-onlynullable
schemaMappingobject[]optioneel
Default: []nullable
transformRulesobject[]optioneel
Default: []nullable
isActivebooleanoptioneel
Default: true
cachedRowCountintegeroptioneel
≥ 0read-onlynullable
uploadMetadataobjectoptioneel

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
fileKeystringoptioneel
originalFileNamestringoptioneel
rowCountintegeroptioneel
≥ 0
columnSamplestring[]optioneel
delimiterstringoptioneel
encodingstringoptioneel
hasHeaderbooleanoptioneel

Standaard-endpoints

Deze resource volgt het generieke CRUD-contract van het platform. Lees de conventies voor paginering, idempotentie, optimistic locking en audit. De belangrijkste endpoints:

  • GET /api/v1/analytics_datasources — Lijst, gepagineerd + filterbaar
  • GET /api/v1/analytics_datasources/<id> — Enkele entity
  • POST /api/v1/analytics_datasources — Aanmaken
  • PATCH /api/v1/analytics_datasources/<id> — Gedeeltelijke update
  • DELETE /api/v1/analytics_datasources/<id> — Soft-delete
  • GET /api/v1/analytics_datasources/<id>/timeline — Audit + activiteiten

Zoeken