deleteConnectionWithHttpInfo method

Future<Response> deleteConnectionWithHttpInfo(
  1. String id, {
  2. required String uuidToken,
})

Deletes the connection

Deletes the connection and returns its representation as an Connection object. If an Internal Server Error occours, an Error object will be returned.

Note: This method returns the HTTP Response.

Parameters:

  • String id (required): The connection ID

  • String uuidToken: Used for remote connections to device

Implementation

Future<Response> deleteConnectionWithHttpInfo(
  String id, {
  required String uuidToken,
}) async {
  // ignore: prefer_const_declarations
  final path = '${LbWriterEnvironment.getApiEndpoint(
    iotUuid: uuidToken,
  )}/connection/$id';

  // ignore: prefer_final_locals
  Object? postBody;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  const contentTypes = <String>[];

  return apiClient.invokeAPI(
    path,
    'DELETE',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}