updateCommentWithHttpInfo method
Future<Response>
updateCommentWithHttpInfo(
- String tenantId,
- String id,
- UpdatableCommentParams updatableCommentParams, [
- UpdateCommentOptions? options,
Performs an HTTP 'PATCH /api/v1/comments/{id}' operation and returns the Response.
Parameters:
Implementation
Future<Response> updateCommentWithHttpInfo(String tenantId, String id, UpdatableCommentParams updatableCommentParams, [ UpdateCommentOptions? options ]) async {
final contextUserId = options?.contextUserId;
final doSpamCheck = options?.doSpamCheck;
final isLive = options?.isLive;
// ignore: prefer_const_declarations
final path = r'/api/v1/comments/{id}'
.replaceAll('{id}', id);
// ignore: prefer_final_locals
Object? postBody = updatableCommentParams;
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 (doSpamCheck != null) {
queryParams.addAll(_queryParams('', 'doSpamCheck', doSpamCheck));
}
if (isLive != null) {
queryParams.addAll(_queryParams('', 'isLive', isLive));
}
const contentTypes = <String>['application/json'];
return apiClient.invokeAPI(
path,
'PATCH',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}