@Generated public interface ModelVersionsService
This API reference documents the REST endpoints for managing model versions in Unity Catalog. For more details, see the [registered models API docs](/api/workspace/registeredmodels).
This is the high-level interface, that contains generated methods.
Evolving: this interface is under development. Method signatures may change.
| Modifier and Type | Method and Description |
|---|---|
void |
delete(DeleteModelVersionRequest deleteModelVersionRequest)
Deletes a model version from the specified registered model.
|
ModelVersionInfo |
get(GetModelVersionRequest getModelVersionRequest)
Get a model version.
|
ModelVersionInfo |
getByAlias(GetByAliasRequest getByAliasRequest)
Get a model version by alias.
|
ListModelVersionsResponse |
list(ListModelVersionsRequest listModelVersionsRequest)
List model versions.
|
ModelVersionInfo |
update(UpdateModelVersionRequest updateModelVersionRequest)
Updates the specified model version.
|
void delete(DeleteModelVersionRequest deleteModelVersionRequest)
The caller must be a metastore admin or an owner of the parent registered model. For the latter case, the caller must also be the owner or have the **USE_CATALOG** privilege on the parent catalog and the **USE_SCHEMA** privilege on the parent schema.
ModelVersionInfo get(GetModelVersionRequest getModelVersionRequest)
The caller must be a metastore admin or an owner of (or have the **EXECUTE** privilege on) the parent registered model. For the latter case, the caller must also be the owner or have the **USE_CATALOG** privilege on the parent catalog and the **USE_SCHEMA** privilege on the parent schema.
ModelVersionInfo getByAlias(GetByAliasRequest getByAliasRequest)
The caller must be a metastore admin or an owner of (or have the **EXECUTE** privilege on) the registered model. For the latter case, the caller must also be the owner or have the **USE_CATALOG** privilege on the parent catalog and the **USE_SCHEMA** privilege on the parent schema.
ListModelVersionsResponse list(ListModelVersionsRequest listModelVersionsRequest)
The returned models are filtered based on the privileges of the calling user. For example, the metastore admin is able to list all the model versions. A regular user needs to be the owner or have the **EXECUTE** privilege on the parent registered model to recieve the model versions in the response. For the latter case, the caller must also be the owner or have the **USE_CATALOG** privilege on the parent catalog and the **USE_SCHEMA** privilege on the parent schema.
There is no guarantee of a specific ordering of the elements in the response. The elements in the response will not contain any aliases or tags.
PAGINATION BEHAVIOR: The API is by default paginated, a page may contain zero results while still providing a next_page_token. Clients must continue reading pages until next_page_token is absent, which is the only indication that the end of results has been reached.
ModelVersionInfo update(UpdateModelVersionRequest updateModelVersionRequest)
The caller must be a metastore admin or an owner of the parent registered model. For the latter case, the caller must also be the owner or have the **USE_CATALOG** privilege on the parent catalog and the **USE_SCHEMA** privilege on the parent schema.
Currently only the comment of the model version can be updated.
Copyright © 2026. All rights reserved.