(Preview) Create a model version in a workspace
post
/20260430/aiDataPlatforms/{aiDataPlatformId}/workspaces/{workspaceKey}/mlops/api/2.0/mlflow/model-versions/create
(Preview) Creates a new model version in a specified workspace.
Request
Path Parameters
-
aiDataPlatformId(required): string
The [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the AI Data Platform (Data Lake) instance.
-
workspaceKey(required): string
The key of the Workspace
Header Parameters
-
dh-user-principal: string
The DH User Principal Header .
-
opc-request-id: string
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. The only valid characters for request IDs are letters, numbers, underscore, and dash.
-
opc-retry-token: string
Minimum Length:
1Maximum Length:64A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of running that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations. For example, if a resource has been deleted and removed from the system, then a retry of the original creation request might be rejected.
Details for the new model version.
Root Schema : CreateModelVersionDetails
Type:
objectThe data to create a model version.
Show Source
-
description:
string
Description of this model version.
-
model_id:
string
Model ID for model version that is used to link the registered model to the source logged model.
-
name(required):
string
Register models under this name.
-
run_id:
string
Run ID that generated the model version.
-
run_link:
string
Direct link to the run that generated this version.
-
source(required):
string
URI indicating the location of the source model artifacts.
-
tags:
array tags
Tags of model version.
Nested Schema : ModelVersionTag
Type:
objectModelVersion tag.
Show Source
-
key:
string
Key of the tag.
-
value:
string
Value of the tag.
Response
Supported Media Types
- application/json
200 Response
Successful operation. Model version is created.
Headers
-
etag: string
For optimistic concurrency control. See `if-match`.
-
opc-request-id: string
Unique Oracle-assigned ID for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : CreateModelVersionResponseDetails
Type:
objectCreated model version details.
Show Source
-
model_version(required):
object ModelVersion
Details of the model version.
Nested Schema : ModelVersion
Type:
objectDetails of the model version.
Show Source
-
aliases:
array aliases
Aliases pointing to this version.
-
creation_timestamp:
integer(int64)
Timestamp in milliseconds when the model version was created.
-
current_stage:
string
Current stage for this model version.
-
deployment_job_state:
object ModelVersionDeploymentJobState
ModelVersion tag.
-
description:
string
Description of this model version.
-
last_updated_timestamp:
integer(int64)
Timestamp in milliseconds when metadata for the model version was last updated.
-
model_id:
string
Model ID for model version that is used to link the registered model to the source logged model.
-
model_metrics:
array model_metrics
Metrics logged for the model.
-
model_params:
array model_params
Parameters logged for the model.
-
name:
string
Unique name for the model.
-
run_id:
string
Run ID used when creating model version.
-
run_link:
string
Direct link to the run that generated this version.
-
source:
string
URI indicating the location of the source model artifacts, used when creating model version.
-
status:
string
Allowed Values:
[ "PENDING_REGISTRATION", "FAILED_REGISTRATION", "READY" ]Current status of model version. -
status_message:
string
Details on current status, if it is pending or failed.
-
tags:
array tags
Tags of model version.
-
user_id:
string
User that created this model version.
-
version:
string
Model???s version number.
Nested Schema : ModelVersionDeploymentJobState
Type:
objectModelVersion tag.
Show Source
-
current_task_name:
string
Current task name.
-
job_id:
string
Job ID.
-
job_state:
string
Allowed Values:
[ "DEPLOYMENT_JOB_CONNECTION_STATE_UNSPECIFIED", "NOT_SET_UP", "CONNECTED", "NOT_FOUND", "REQUIRED_PARAMETERS_CHANGED" ]Job state. -
run_id:
string
Run ID.
-
run_state:
string
Allowed Values:
[ "DEPLOYMENT_JOB_RUN_STATE_UNSPECIFIED", "NO_VALID_DEPLOYMENT_JOB_FOUND", "RUNNING", "SUCCEEDED", "FAILED", "PENDING", "APPROVAL" ]Run state.
Nested Schema : model_metrics
Type:
arrayMetrics logged for the model.
Show Source
-
Array of:
object ModelMetric
Model metric.
Nested Schema : model_params
Type:
arrayParameters logged for the model.
Show Source
-
Array of:
object ModelParam
Model param.
Nested Schema : ModelMetric
Type:
objectModel metric.
Show Source
-
key:
string
Name of the metric.
-
step:
integer(int64)
Step at which to log the metric.
-
timestamp:
integer(int64)
Unix timestamp in milliseconds when this metric was recorded.
-
value:
number(double)
Value of the metric.
Nested Schema : ModelParam
Type:
objectModel param.
Show Source
-
name:
string
Name of the parameter.
-
value:
string
Value of the parameter.
Nested Schema : ModelVersionTag
Type:
objectModelVersion tag.
Show Source
-
key:
string
Key of the tag.
-
value:
string
Value of the tag.
400 Response
Bad Request (invalid query parameters, malformed headers, and so on).
Headers
-
opc-request-id: string
Unique Oracle-assigned ID for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
objectError information.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
message(required):
string
A human-readable error message.
401 Response
Unauthorized (missing or expired credentials, and so on).
Headers
-
opc-request-id: string
Unique Oracle-assigned ID for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
objectError information.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
message(required):
string
A human-readable error message.
404 Response
Not Found. The requested resource was not found.
Headers
-
opc-request-id: string
Unique Oracle-assigned ID for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
objectError information.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
message(required):
string
A human-readable error message.
409 Response
Conflict. Request conflicts with the current state of the resource.
Headers
-
opc-request-id: string
Unique Oracle-assigned ID for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
objectError information.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
message(required):
string
A human-readable error message.
429 Response
Too Many Requests. Too many requests sent to the server in a short period.
Headers
-
opc-request-id: string
Unique Oracle-assigned ID for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
objectError information.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
message(required):
string
A human-readable error message.
500 Response
Internal Server Error. The server encountered an unexpected condition preventing fulfilment of the request.
Headers
-
opc-request-id: string
Unique Oracle-assigned ID for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
objectError information.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
message(required):
string
A human-readable error message.
Default Response
Unknown Error. Error is not recognized by the system.
Headers
-
opc-request-id: string
Unique Oracle-assigned ID for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
objectError information.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
message(required):
string
A human-readable error message.