projectsImageUpdateWithHttpInfo method
Upload an image. Max size 30MB. Filename is required!
Note: This method returns the HTTP Response
.
Parameters:
Implementation
Future<Response> projectsImageUpdateWithHttpInfo(
String contentDisposition,
String id, {
MultipartFile? body,
}) async {
// ignore: prefer_const_declarations
final path = r'/api/projects/{id}/image/'.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>['image/*'];
return apiClient.invokeAPI(
path,
'PUT',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}