modelsCreateWithHttpInfo method
Add a new model. Change details and translations later via PUT or PATCH.
Note: This method returns the HTTP Response
.
Parameters:
- ModelCreate modelCreate (required):
Implementation
Future<Response> modelsCreateWithHttpInfo(
ModelCreate modelCreate,
) async {
// ignore: prefer_const_declarations
final path = r'/api/models/';
// ignore: prefer_final_locals
Object? postBody = modelCreate;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>['application/json'];
return apiClient.invokeAPI(
path,
'POST',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}