sendLoginLinkWithHttpInfo method

Future<Response> sendLoginLinkWithHttpInfo(
  1. String tenantId,
  2. String id, [
  3. String? redirectURL
])

Performs an HTTP 'POST /api/v1/tenant-users/{id}/send-login-link' operation and returns the Response. Parameters:

Implementation

Future<Response> sendLoginLinkWithHttpInfo(String tenantId, String id, [ String? redirectURL ]) async {
  // ignore: prefer_const_declarations
  final path = r'/api/v1/tenant-users/{id}/send-login-link'
    .replaceAll('{id}', id);

  // ignore: prefer_final_locals
  Object? postBody;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

    queryParams.addAll(_queryParams('', 'tenantId', tenantId));
  if (redirectURL != null) {
    queryParams.addAll(_queryParams('', 'redirectURL', redirectURL));
  }

  const contentTypes = <String>[];


  return apiClient.invokeAPI(
    path,
    'POST',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}