Transformers
Test a transformer with input data
Runs a configured transformer (standard or custom, by id) with the given options against the provided input data, returning both the wrapped input and the transformed output. Used to test a north/history transformer with its configured options.
post/api/transformers/{transformerId}/test
Path parameters
transformerIdstring required
Request body
Example request
{
"inputData": "[{\"timestamp\":\"2024-01-01T00:00:00.000Z\",\"pointId\":\"sensor1\",\"value\":\"42.0\"}]",
"options": {
"precision": 2
}
}Response
The wrapped input and transformed output
Example response
{
"raw": {
"type": "time-values",
"content": [
{
"pointId": "point1",
"timestamp": "2023-10-31T12:34:56.789Z"
}
]
},
"transformed": {
"type": "time-values",
"content": [
{
"pointId": "point1",
"timestamp": "2023-10-31T12:34:56.789Z"
}
]
}
}