updateCaseComment method

Future<UpdateCaseCommentResponse> updateCaseComment({
  1. required String body,
  2. required String caseId,
  3. required String commentId,
})

Updates an existing case comment.

Parameter body : Required element for UpdateCaseComment to identify the content for the comment to be updated.

Parameter caseId : Required element for UpdateCaseComment to identify the case ID containing the comment to be updated.

Parameter commentId : Required element for UpdateCaseComment to identify the case ID to be updated.

Implementation

Future<UpdateCaseCommentResponse> updateCaseComment({
  required String body,
  required String caseId,
  required String commentId,
}) async {
  final $payload = <String, dynamic>{
    'body': body,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'PUT',
    requestUri:
        '/v1/cases/${Uri.encodeComponent(caseId)}/update-case-comment/${Uri.encodeComponent(commentId)}',
    exceptionFnMap: _exceptionFns,
  );
  return UpdateCaseCommentResponse.fromJson(response);
}