modelsUsdzUpdateWithHttpInfo method
Upload a file. Max size 30MB. Filename is required!
Note: This method returns the HTTP Response
.
Parameters:
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,
);
}