batchUpdateUser method

Future<BatchUpdateUserResponse> batchUpdateUser({
  1. required String accountId,
  2. required List<UpdateUserRequestItem> updateUserRequestItems,
})

Updates user details within the UpdateUserRequestItem object for up to 20 users for the specified Amazon Chime account. Currently, only LicenseType updates are supported for this action.

May throw BadRequestException. May throw ForbiddenException. May throw NotFoundException. May throw ServiceFailureException. May throw ServiceUnavailableException. May throw ThrottledClientException. May throw UnauthorizedClientException.

Parameter accountId : The Amazon Chime account ID.

Parameter updateUserRequestItems : The request containing the user IDs and details to update.

Implementation

Future<BatchUpdateUserResponse> batchUpdateUser({
  required String accountId,
  required List<UpdateUserRequestItem> updateUserRequestItems,
}) async {
  final $payload = <String, dynamic>{
    'UpdateUserRequestItems': updateUserRequestItems,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/accounts/${Uri.encodeComponent(accountId)}/users',
    exceptionFnMap: _exceptionFns,
  );
  return BatchUpdateUserResponse.fromJson(response);
}