associateUsersToDeviceWithHttpInfo method
Associates one or more devices to the given user
Associates a list of iots to the given user if the security requirements are fulfilled
Note: This method returns the HTTP Response.
Parameters:
-
String token (required): IoT ID
-
List<String> userIds (required): List of user ids
Implementation
Future<Response> associateUsersToDeviceWithHttpInfo(
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,
'POST',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}