Create transfer function
POST/api/v1/devices/{deviceId}/inputs/data-objects/transfer-functions
Create a new transfer function to transform data object values using mathematical expressions.
Path Parameters
deviceId(string, required): Device identifier. The device must exist in the system. Example:9f75abda56c3
Request Body Parameters
type(FunctionTransferType, required): Type of transfer function. Currently onlyExpressionis supported. Example:ExpressionoutputDataObjectName(string, required): Output data object name for the transformed value. Must be unique for the device. Accepted formats: camelCase, snake_case, or single word. No all-digit names or special characters. Example:calibrated_temperatureexpression(string, required): Mathematical expression for transformation. Supports basic arithmetic operators (+, -, *, /, %). The variable name will be automatically extracted. Example:(temperature * 1.8) + 32
Responses
200 OK: Returns the created transfer function. Response fields:transferFunctionId: Unique identifier (GUID string)type: Transfer type (expression)outputDataObjectName: Output data object nameexpression: Mathematical expressionisEnabled: Whether the transfer function is active (alwaystrueon creation)creationTime: ISO 8601 creation timestamplastModificationTime: ISO 8601 last update timestamp (null on creation)
400 Bad Request: Invalid request parameters or expression syntax.409 Conflict: Transfer function already exists for the device and output name combination.
Security
- This API requires authentication.
Request
Responses
- 200
OK