deleteCommentWithHttpInfo method

Future<Response> deleteCommentWithHttpInfo(
  1. String tenantId,
  2. String id, {
  3. String? contextUserId,
  4. bool? isLive,
})

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

Implementation

Future<Response> deleteCommentWithHttpInfo(String tenantId, String id, { String? contextUserId, bool? isLive, }) async {
  // ignore: prefer_const_declarations
  final path = r'/api/v1/comments/{id}'
    .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 (contextUserId != null) {
    queryParams.addAll(_queryParams('', 'contextUserId', contextUserId));
  }
  if (isLive != null) {
    queryParams.addAll(_queryParams('', 'isLive', isLive));
  }

  const contentTypes = <String>[];


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