updateUserNotificationPageSubscriptionStatusWithHttpInfo method

Future<Response> updateUserNotificationPageSubscriptionStatusWithHttpInfo(
  1. String tenantId,
  2. String urlId,
  3. String url,
  4. String pageTitle,
  5. String subscribedOrUnsubscribed, [
  6. String? sso,
])

Enable or disable notifications for a page. When users are subscribed to a page, notifications are created for new root comments, and also

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> updateUserNotificationPageSubscriptionStatusWithHttpInfo(String tenantId, String urlId, String url, String pageTitle, String subscribedOrUnsubscribed, [ String? sso ]) async {
  // ignore: prefer_const_declarations
  final path = r'/user-notifications/set-subscription-state/{subscribedOrUnsubscribed}'
    .replaceAll('{subscribedOrUnsubscribed}', subscribedOrUnsubscribed);

  // ignore: prefer_final_locals
  Object? postBody;

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

    queryParams.addAll(_queryParams('', 'tenantId', tenantId));
    queryParams.addAll(_queryParams('', 'urlId', urlId));
    queryParams.addAll(_queryParams('', 'url', url));
    queryParams.addAll(_queryParams('', 'pageTitle', pageTitle));
  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,
  );
}