getPresignedUploadWithHttpInfo method

Future<Response> getPresignedUploadWithHttpInfo(
  1. GetPresignedUploadRequest getPresignedUploadRequest
)

Get S3 presigned upload URL

Get a presigned URL for uploading large files (>10MB) directly to S3.

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> getPresignedUploadWithHttpInfo(GetPresignedUploadRequest getPresignedUploadRequest,) async {
  // ignore: prefer_const_declarations
  final path = r'/v1/jobs/upload/presigned';

  // ignore: prefer_final_locals
  Object? postBody = getPresignedUploadRequest;

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