updateIotServicesWithHttpInfo method

Future<Response> updateIotServicesWithHttpInfo(
  1. String token,
  2. String xWalletId,
  3. ServiceRequestBody serviceRequestBody
)

Updates services

Updates the service status on an IoT

Note: This method returns the HTTP Response.

Parameters:

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,
  );
}