updateUserNotificationCommentSubscriptionStatusWithHttpInfo method
Enable or disable notifications for a specific comment.
Note: This method returns the HTTP Response.
Parameters:
Implementation
Future<Response> updateUserNotificationCommentSubscriptionStatusWithHttpInfo(String tenantId, String notificationId, String optedInOrOut, String commentId, [ String? sso ]) async {
// ignore: prefer_const_declarations
final path = r'/user-notifications/{notificationId}/mark-opted/{optedInOrOut}'
.replaceAll('{notificationId}', notificationId)
.replaceAll('{optedInOrOut}', optedInOrOut);
// 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('', 'commentId', commentId));
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,
);
}