resetUserNotificationsWithHttpInfo method

Future<Response> resetUserNotificationsWithHttpInfo(
  1. String tenantId, {
  2. String? afterId,
  3. int? afterCreatedAt,
  4. bool? unreadOnly,
  5. bool? dmOnly,
  6. bool? noDm,
  7. String? sso,
})

Performs an HTTP 'POST /user-notifications/reset' operation and returns the Response. Parameters:

Implementation

Future<Response> resetUserNotificationsWithHttpInfo(String tenantId, { String? afterId, int? afterCreatedAt, bool? unreadOnly, bool? dmOnly, bool? noDm, String? sso, }) async {
  // ignore: prefer_const_declarations
  final path = r'/user-notifications/reset';

  // ignore: prefer_final_locals
  Object? postBody;

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

    queryParams.addAll(_queryParams('', 'tenantId', tenantId));
  if (afterId != null) {
    queryParams.addAll(_queryParams('', 'afterId', afterId));
  }
  if (afterCreatedAt != null) {
    queryParams.addAll(_queryParams('', 'afterCreatedAt', afterCreatedAt));
  }
  if (unreadOnly != null) {
    queryParams.addAll(_queryParams('', 'unreadOnly', unreadOnly));
  }
  if (dmOnly != null) {
    queryParams.addAll(_queryParams('', 'dmOnly', dmOnly));
  }
  if (noDm != null) {
    queryParams.addAll(_queryParams('', 'noDm', noDm));
  }
  if (sso != null) {
    queryParams.addAll(_queryParams('', 'sso', sso));
  }

  const contentTypes = <String>[];


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