Aerovy Platform logo

Test a template (dry run)

POSThttps://spectra.api.aerovy.com/v2/templates/{templateId}/test

Maps a sample payload through the template (extractor + transform only — no Thing resolution, no metric intersection, no write) and returns the produced per-record values plus diagnostics. Requires an API key with the read action scoped to the template.

Loading code example
Loading code example

Authorizations

apiKeystringheaderrequired

API key passed in the header.

Path Parameters

templateIdstringrequired

The template id.

Response

application/json

The dry-run result.

reportobject
report.previewOnlyboolean
report.templateIdnull | string
report.templateRevisionnull | integer | string<int32>
Pattern: ^-?(?:0|[1-9]\d*)$
report.templateUpdatedAtnull | string<date-time>
report.recordsParsedinteger | string<int32>
Pattern: ^-?(?:0|[1-9]\d*)$
report.readingsWritteninteger | string<int32>
Pattern: ^-?(?:0|[1-9]\d*)$
report.metricValuesWritteninteger | string<int32>
Pattern: ^-?(?:0|[1-9]\d*)$
report.recordsSkippedarray<object>
report.recordsSkippedOmittedinteger | string<int32>
Pattern: ^-?(?:0|[1-9]\d*)$
report.metricsSkippedNotOnTtdarray<string>
report.fieldsSkippedMissingarray<object>
report.fieldsInvalidarray<object>
report.lineProtocolnull | string
recordsarray<object>
records.timestampMsinteger | string<int64>
Pattern: ^-?(?:0|[1-9]\d*)$
records.fieldsarray<object>