getCaseAttachmentDownloadUrl method

Future<GetCaseAttachmentDownloadUrlResponse> getCaseAttachmentDownloadUrl({
  1. required String attachmentId,
  2. required String caseId,
})

Returns a Pre-Signed URL for uploading attachments into a case.

Parameter attachmentId : Required element for GetCaseAttachmentDownloadUrl to identify the attachment ID for downloading an attachment.

Parameter caseId : Required element for GetCaseAttachmentDownloadUrl to identify the case ID for downloading an attachment from.

Implementation

Future<GetCaseAttachmentDownloadUrlResponse> getCaseAttachmentDownloadUrl({
  required String attachmentId,
  required String caseId,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/v1/cases/${Uri.encodeComponent(caseId)}/get-presigned-url/${Uri.encodeComponent(attachmentId)}',
    exceptionFnMap: _exceptionFns,
  );
  return GetCaseAttachmentDownloadUrlResponse.fromJson(response);
}