closeCase method

Future<CloseCaseResponse> closeCase({
  1. required String caseId,
})

Closes an existing case.

Parameter caseId : Required element used in combination with CloseCase to identify the case ID to close.

Implementation

Future<CloseCaseResponse> closeCase({
  required String caseId,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'POST',
    requestUri: '/v1/cases/${Uri.encodeComponent(caseId)}/close-case',
    exceptionFnMap: _exceptionFns,
  );
  return CloseCaseResponse.fromJson(response);
}