modelsUpdateWithHttpInfo method

Future<Response> modelsUpdateWithHttpInfo(
  1. String id, {
  2. ModelUpdate? modelUpdate,
})

Change model details. Translated field are all optional expcet for name_de.

Note: This method returns the HTTP Response.

Parameters:

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

  • ModelUpdate modelUpdate:

Implementation

Future<Response> modelsUpdateWithHttpInfo(
  String id, {
  ModelUpdate? modelUpdate,
}) async {
  // ignore: prefer_const_declarations
  final path = r'/api/models/{id}/'.replaceAll('{id}', id);

  // ignore: prefer_final_locals
  Object? postBody = modelUpdate;

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

  const contentTypes = <String>['application/json'];

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