uploadAttachmentWithHttpInfo method

Future<Response> uploadAttachmentWithHttpInfo(
  1. UploadAttachmentOptions uploadAttachmentOptions
)

Upload an attachment for sending using base64 file encoding. Returns an array whose first element is the ID of the uploaded attachment.

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> uploadAttachmentWithHttpInfo(UploadAttachmentOptions uploadAttachmentOptions,) async {
  // ignore: prefer_const_declarations
  final path = r'/attachments';

  // ignore: prefer_final_locals
  Object? postBody = uploadAttachmentOptions;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  const contentTypes = <String>['application/json'];


  return apiClient.invokeAPI(
    path,
    'POST',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}