Create an ML Model Service
Create a new ML model service connection with authentication, endpoint configuration, owners, and tags using the Collate REST API for model registry integration.
POST
POST /v1/services/mlmodelServices
Create an ML Model Service
Create a new ML model service connection to a platform such as Mlflow, Sklearn, or SageMaker.The Python examples on this page use the original client (
metadata.ingestion.ometa.ometa_api.OpenMetadata). For more information, see Which Python SDK Should I Use?.Body Parameters
POST /v1/services/mlmodelServices
Returns
Returns the created ML model service object with all specified properties and system-generated fields.Response
Create or Update (PUT)
UsePUT /v1/services/mlmodelServices instead of POST to perform an upsert. If an ML model service with the same fullyQualifiedName already exists, it will be updated; otherwise, a new service is created. The request body is the same as POST.
Note:
PUT will not return a 409 conflict error if the entity already exists — it will update the existing entity instead. However, for certain fields (such as description, tags, owners, and custom properties), PUT preserves an already-populated value instead of overwriting it with an empty or omitted one — the exact behavior depends on the field and the calling user or bot’s permissions, not a blanket rule. See Entity Update Behavior for the full preserve/merge rules. Use PATCH to intentionally replace an existing value.Bulk Create or Update (PUT)
UsePUT /v1/services/mlmodelServices/bulk to create or update multiple ML model services in a single request. The request body is an array of create request objects.