dissociateUsersFromDeviceWithHttpInfo method

Future<Response> dissociateUsersFromDeviceWithHttpInfo(
  1. String token,
  2. List<String> userIds
)

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> dissociateUsersFromDeviceWithHttpInfo(
  String token,
  List<String> userIds,
) async {
  // ignore: prefer_const_declarations
  final path =
      r'/relationships/iot/{token}/users'.replaceAll('{token}', token);

  // ignore: prefer_final_locals
  Object? postBody = userIds;

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