editDetectorName method

Future<Map<String, dynamic>> editDetectorName(
  1. String deviceSerial,
  2. String detectorSerial,
  3. String newName
)

Implementation

Future<Map<String, dynamic>> editDetectorName(
  String deviceSerial, // A1 Hub serial
  String detectorSerial,
  String newName,
) async {
  return _client.post('/api/lapp/detector/name/change', {
    'deviceSerial': deviceSerial,
    'detectorSerial': detectorSerial,
    'newName': newName,
  });
}