Formula
POST
2 endpoints
/api/v202405/formula/validateCalculatedMeter
ValidateCalculatedMeterFormulaV202405
Check that a Calculated Meter formula is valid.
It is valid if the following are all true:
<list type="bullet"><item><description>
It is syntactically correct
</description></item><item><description>
It only calls allowed functions (including the custom function `channel()`")
</description></item><item><description>
Each channel referenced (via `channel(channelId)`) is the Primary Value Channel
of some other datapoint (which also rules out self-references).
</description></item></list>
/api/v202405/formula/validate
ValidateFormulaV202405
Check that a Calculated Channel formula is valid, in the context of the given datapoint.
It is valid if the following are all true:
<list type="bullet"><item><description>
It is syntactically correct
</description></item><item><description>
It only calls allowed functions (including the custom function `channel()`")
</description></item><item><description>
Each channel referenced (via `channel(channelId)`) belongs to this datapoint
and is a simple (not calculated) channel (which also rules out self-references).
</description></item></list>