updateOtaTask method

Future<void> updateOtaTask({
  1. required String identifier,
  2. String? description,
  3. String? taskConfigurationId,
})

Update an over-the-air (OTA) task.

May throw AccessDeniedException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter identifier : The over-the-air (OTA) task id.

Parameter description : The description of the over-the-air (OTA) task.

Parameter taskConfigurationId : The identifier for the over-the-air (OTA) task configuration.

Implementation

Future<void> updateOtaTask({
  required String identifier,
  String? description,
  String? taskConfigurationId,
}) async {
  final $payload = <String, dynamic>{
    if (description != null) 'Description': description,
    if (taskConfigurationId != null)
      'TaskConfigurationId': taskConfigurationId,
  };
  await _protocol.send(
    payload: $payload,
    method: 'PUT',
    requestUri: '/ota-tasks/${Uri.encodeComponent(identifier)}',
    exceptionFnMap: _exceptionFns,
  );
}