Replace a data analyzer
PUT/api/v1/orgs/{orgId}/devices/{deviceId}/analyzers/{analyzerId}
Replace all editable fields of a specific analyzer. The analyzer must be disabled first. Its enabled state is not part of this payload and remains unchanged.
Responses
200 OK: Analyzer updated successfully.400 Bad Request: Invalid request, expression, or script; an expression or script that does not name every declared input parameter; a duplicate or self-referencing data stream, or more than ten inputs; a duplicate input parameter name; an unsupported JSONPath, or a JavaScript output without one; adataAssemblyPolicyvalue outside its range; or a dependency graph exceeding the maximum chain depth of five analyzers or containing a cycle.401 Unauthorized: Missing or invalid authentication token.403 Forbidden: The caller is not permitted to access this organization or device.404 Not Found: Analyzer, device, or output data stream not found.409 Conflict: Analyzer is enabled, or an output data stream already has a data source (another analyzer, or a node, subnode, or device).500 Internal Server Error: An upstream service (device management, data streams, or Data Assembly) was unreachable or failed.
Security
- This API requires authentication.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 409
- 500
OK
Invalid request, expression, or script; an expression or script that does not name every declared input parameter; a duplicate or self-referencing data stream, or more than ten inputs; a duplicate input parameter name; an unsupported JSONPath, or a JavaScript output without one; a dataAssemblyPolicy value outside its range; or a dependency graph exceeding the maximum chain depth of five analyzers or containing a cycle.
Missing or invalid authentication token.
The caller is not permitted to access this organization or device.
Analyzer, device, or output data stream not found.
Analyzer is enabled, or an output data stream already has a data source.
An upstream service was unreachable or failed.