modelsUsdzUpdateWithHttpInfo method

Future<Response> modelsUsdzUpdateWithHttpInfo(
  1. String contentDisposition,
  2. String id, {
  3. MultipartFile? body,
})

Upload a file. Max size 30MB. Filename is required!

Note: This method returns the HTTP Response.

Parameters:

  • String contentDisposition (required): The original filename.

  • String id (required): A UUID identifying this object.

  • MultipartFile body:

Implementation

Future<Response> modelsUsdzUpdateWithHttpInfo(
  String contentDisposition,
  String id, {
  MultipartFile? body,
}) async {
  // ignore: prefer_const_declarations
  final path = r'/api/models/{id}/usdz/'.replaceAll('{id}', id);

  // ignore: prefer_final_locals
  Object? postBody = body;

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

  headerParams[r'Content-Disposition'] = parameterToString(contentDisposition);

  const contentTypes = <String>['application/octet-stream'];

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