v1

latestOpenAPI 3.1.0raw.githubusercontent.com2024-09-27192307552.2 KB
workspaces

Create Model Version

Create a new model version.

Args: model_name_or_id: Name or ID of the model. workspace_name_or_id: Name or ID of the workspace. model_version: The model version to create. auth_context: Authentication context.

Returns: The created model version.

Raises: IllegalOperationError: If the workspace specified in the model version does not match the current workspace.

post/api/v1/workspaces/{workspace_name_or_id}/models/{model_name_or_id}/model_versions

Path parameters

string required
OR
string uuid required
string required
OR
string uuid required

Request body

userstring uuid required
workspacestring uuid required
namestring nullable

The name of the model version

descriptionstring nullable

The description of the model version

stagestring nullable

The stage of the model version

numberinteger nullable

The number of the model version

modelstring uuid required

The ID of the model containing version

tagsstring[] nullable

Response

Successful Response

idstring uuid required
permission_deniedboolean
namestring nullable

The name of the model version