POST /v1/mlmodels
Create an ML Model
Create a new ML model within an ML model service
POST
POST /v1/mlmodels
Documentation Index
Fetch the complete documentation index at: https://openmetadata-codex-audit-docs-codebase-alignment.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Create an ML Model
Create a new ML model within an ML model service.Body Parameters
Name of the ML model. Must be unique within the parent ML model service.
Fully qualified name of the parent MlModelService (e.g.,
mlflow_svc).Algorithm used by the ML model (e.g.,
KMeans, RandomForest, XGBoost, Neural Network).Human-readable display name for the ML model.
Description of the ML model in Markdown format.
Array of ML features used by the model.
Array of hyperparameters used by the model.
Target variable or objective of the ML model.
Endpoint URL for the model serving server.
Reference to an associated dashboard entity.
Array of owner references (users or teams) to assign to the ML model.
Fully qualified name of the domain to assign for governance purposes.
Array of classification tags to apply to the ML model.
Custom property values defined by your organization’s metadata schema.
POST /v1/mlmodels
Returns
Returns the created ML model object with all specified properties and system-generated fields.Response
Unique identifier for the ML model (UUID format).
ML model name.
Fully qualified name in format
service.modelName.Human-readable display name.
Description of the ML model in Markdown format.
Algorithm used by the ML model.
Features used by the ML model.
Hyperparameters used by the ML model.
Target variable or objective of the ML model.
Reference to the parent ML model service.
Type of ML model service (e.g., Mlflow, Sklearn, SageMaker).
List of owners assigned to the ML model.
Domain assignments for governance.
Classification tags applied to the ML model.
Custom property values defined by your organization’s metadata schema.
Version number for the entity (starts at 0.1).
Create or Update (PUT)
UsePUT /v1/mlmodels instead of POST to perform an upsert. If an ML model with the same fullyQualifiedName already exists, it will be updated; otherwise, a new ML model is created. The request body is the same as POST.
PUT will not return a 409 conflict error if the entity already exists — it will update the existing entity instead.Bulk Create or Update (PUT)
UsePUT /v1/mlmodels/bulk to create or update multiple ML models in a single request. The request body is an array of create request objects.
Error Handling
| Code | Error Type | Description |
|---|---|---|
400 | BAD_REQUEST | Invalid request body or missing required fields |
401 | UNAUTHORIZED | Invalid or missing authentication token |
403 | FORBIDDEN | User lacks permission to create ML models |
409 | ENTITY_ALREADY_EXISTS | ML model with same name already exists in service (POST only) |