dissociateDevicesFromUserWithHttpInfo method

Future<Response> dissociateDevicesFromUserWithHttpInfo(
  1. String userId,
  2. List<String> deviceTokens
)

Removes one or more devices from the given user

Deletes a list of iots from the given user if the security requirements are fulfilled

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> dissociateDevicesFromUserWithHttpInfo(
  String userId,
  List<String> deviceTokens,
) async {
  // ignore: prefer_const_declarations
  final path =
      r'/relationships/user/{userId}/iots'.replaceAll('{userId}', userId);

  // ignore: prefer_final_locals
  Object? postBody = deviceTokens;

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

  const contentTypes = <String>['application/json'];

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