modelsPartialUpdateWithHttpInfo method
Future<Response>
modelsPartialUpdateWithHttpInfo(
- String id, {
- PatchedModelUpdate? patchedModelUpdate,
Change as subset of model details.
Note: This method returns the HTTP Response
.
Parameters:
-
String id (required): A UUID string identifying this Model.
-
PatchedModelUpdate patchedModelUpdate:
Implementation
Future<Response> modelsPartialUpdateWithHttpInfo(
String id, {
PatchedModelUpdate? patchedModelUpdate,
}) async {
// ignore: prefer_const_declarations
final path = r'/api/models/{id}/'.replaceAll('{id}', id);
// ignore: prefer_final_locals
Object? postBody = patchedModelUpdate;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>['application/json'];
return apiClient.invokeAPI(
path,
'PATCH',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}