updateIotWithHttpInfo method
Performs an HTTP 'PATCH /iots/{token}' operation and returns the Response.
Parameters:
-
String token (required): IoT token
-
IotRequestBody iotRequestBody (required): IoT configuration
Implementation
Future<Response> updateIotWithHttpInfo(
String token,
IotRequestBody iotRequestBody,
) async {
// ignore: prefer_const_declarations
final path = r'/lbcoreapi/iots/{token}'.replaceAll('{token}', token);
// ignore: prefer_final_locals
Object? postBody = iotRequestBody;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>['application/json'];
return apiClient.invokeAPI(
path,
'PATCH',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}