updateUserRoutingProfile method

Future<void> updateUserRoutingProfile({
  1. required String instanceId,
  2. required String routingProfileId,
  3. required String userId,
})

Assigns the specified routing profile to the specified user.

May throw InvalidRequestException. May throw InvalidParameterException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw InternalServiceException.

Parameter instanceId : The identifier of the Amazon Connect instance.

Parameter routingProfileId : The identifier of the routing profile for the user.

Parameter userId : The identifier of the user account.

Implementation

Future<void> updateUserRoutingProfile({
  required String instanceId,
  required String routingProfileId,
  required String userId,
}) async {
  ArgumentError.checkNotNull(instanceId, 'instanceId');
  _s.validateStringLength(
    'instanceId',
    instanceId,
    1,
    100,
    isRequired: true,
  );
  ArgumentError.checkNotNull(routingProfileId, 'routingProfileId');
  ArgumentError.checkNotNull(userId, 'userId');
  final $payload = <String, dynamic>{
    'RoutingProfileId': routingProfileId,
  };
  await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri:
        '/users/${Uri.encodeComponent(instanceId)}/${Uri.encodeComponent(userId)}/routing-profile',
    exceptionFnMap: _exceptionFns,
  );
}