uploadFileBase64WithHttpInfo method

Future<Response> uploadFileBase64WithHttpInfo(
  1. UploadFileBase64Request uploadFileBase64Request
)

Upload a file via JSON with base64-encoded content.

Equivalent to uploadFile for clients that can't post multipart bodies (e.g. browser fetch with strict CSP).

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> uploadFileBase64WithHttpInfo(UploadFileBase64Request uploadFileBase64Request,) async {
  // ignore: prefer_const_declarations
  final path = r'/v1/files/upload/base64';

  // ignore: prefer_final_locals
  Object? postBody = uploadFileBase64Request;

  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,
  );
}