updateIotServicesWithHttpInfo method
Future<Response>
updateIotServicesWithHttpInfo(
- String token,
- String xWalletId,
- ServiceRequestBody serviceRequestBody
Updates services
Updates the service status on an IoT
Note: This method returns the HTTP Response.
Parameters:
-
String token (required): IoT token
-
String xWalletId (required): Wallet Id
-
ServiceRequestBody serviceRequestBody (required): IoT service data
Implementation
Future<Response> updateIotServicesWithHttpInfo(
String token,
String xWalletId,
ServiceRequestBody serviceRequestBody,
) async {
// ignore: prefer_const_declarations
final path = r'/services/iots/{token}'.replaceAll('{token}', token);
// ignore: prefer_final_locals
Object? postBody = serviceRequestBody;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
headerParams[r'x-wallet-id'] = parameterToString(xWalletId);
const contentTypes = <String>['application/json'];
return apiClient.invokeAPI(
path,
'PATCH',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}