flagCommentWithHttpInfo method
Future<Response>
flagCommentWithHttpInfo(
- String tenantId,
- String id, [
- FlagCommentOptions? options
Performs an HTTP 'POST /api/v1/comments/{id}/flag' operation and returns the Response.
Parameters:
Implementation
Future<Response> flagCommentWithHttpInfo(String tenantId, String id, [ FlagCommentOptions? options ]) async {
final userId = options?.userId;
final anonUserId = options?.anonUserId;
// ignore: prefer_const_declarations
final path = r'/api/v1/comments/{id}/flag'
.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 (userId != null) {
queryParams.addAll(_queryParams('', 'userId', userId));
}
if (anonUserId != null) {
queryParams.addAll(_queryParams('', 'anonUserId', anonUserId));
}
const contentTypes = <String>[];
return apiClient.invokeAPI(
path,
'POST',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}