updateNotificationWithHttpInfo method

Future<Response> updateNotificationWithHttpInfo(
  1. String tenantId,
  2. String id,
  3. UpdateNotificationBody updateNotificationBody, {
  4. String? userId,
})

Performs an HTTP 'PATCH /api/v1/notifications/{id}' operation and returns the Response. Parameters:

Implementation

Future<Response> updateNotificationWithHttpInfo(String tenantId, String id, UpdateNotificationBody updateNotificationBody, { String? userId, }) async {
  // ignore: prefer_const_declarations
  final path = r'/api/v1/notifications/{id}'
    .replaceAll('{id}', id);

  // ignore: prefer_final_locals
  Object? postBody = updateNotificationBody;

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

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

  const contentTypes = <String>['application/json'];


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