enableUser method

Future<EnableUserResponse> enableUser({
  1. required String userId,
  2. String? clientToken,
})

Allows the specified user to access the FinSpace web application and API.

May throw AccessDeniedException. May throw ConflictException. May throw InternalServerException. May throw LimitExceededException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter userId : The unique identifier for the user that you want to activate.

Parameter clientToken : A token that ensures idempotency. This token expires in 10 minutes.

Implementation

Future<EnableUserResponse> enableUser({
  required String userId,
  String? clientToken,
}) async {
  final $payload = <String, dynamic>{
    'clientToken': clientToken ?? _s.generateIdempotencyToken(),
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/user/${Uri.encodeComponent(userId)}/enable',
    exceptionFnMap: _exceptionFns,
  );
  return EnableUserResponse.fromJson(response);
}