link model version
POST/metalakes/:metalake/catalogs/:catalog/schemas/:schema/models/:model/versions
link model version
Request
Path Parameters
The name of the metalake
The name of the catalog
The name of the schema
The name of the model
- application/json
Body
The uri of the model version
uris
object
nullable
The uris of the model version, either uris or uri should be provided
The aliases of the model version
The comment of the model version
properties
object
nullable
The properties of the model version
Responses
- 200
- 404
- 409
- 5xx
Represents a response for a base operation
- application/vnd.gravitino.v1+json
- Schema
- Example (from schema)
- Example
Schema
Possible values: [0
]
Status code of the response
{
"code": 0
}
{
"code": 0
}
Not Found - The target model does not exist
- application/vnd.gravitino.v1+json
- Schema
- Example (from schema)
- NoSuchModelException
Schema
Possible values: >= 1000
and <= 1100
HTTP response code
Internal type definition of the error
A human-readable message
{
"code": 1002,
"type": "string",
"message": "string",
"stack": [
"string"
]
}
{
"code": 1003,
"type": "NoSuchModelException",
"message": "Model does not exist",
"stack": [
"org.apache.gravitino.exceptions.NoSuchModelException: Model does not exist"
]
}
Conflict - The model version aliases already exist
- application/vnd.gravitino.v1+json
- Schema
- Example (from schema)
- ModelVersionAliasesAlreadyExistException
Schema
Possible values: >= 1000
and <= 1100
HTTP response code
Internal type definition of the error
A human-readable message
{
"code": 1002,
"type": "string",
"message": "string",
"stack": [
"string"
]
}
{
"code": 1004,
"type": "ModelVersionAliasesAlreadyExistException",
"message": "Model version aliases already exist",
"stack": [
"org.apache.gravitino.exceptions.ModelVersionAliasesAlreadyExistException: Model version aliases already exist"
]
}
A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes.
- application/vnd.gravitino.v1+json
- Schema
- Example (from schema)
- Example
Schema
Possible values: >= 1000
and <= 1100
HTTP response code
Internal type definition of the error
A human-readable message
{
"code": 1002,
"type": "string",
"message": "string",
"stack": [
"string"
]
}
{
"code": 1002,
"type": "RuntimeException",
"message": "Internal Server Error",
"stack": [
"java.lang.RuntimeException: Internal Server Error"
]
}