Link model version
POST/metalakes/:metalake/catalogs/:catalog/schemas/:schema/models/:model/versions
Links a new version to a model with the given URIs, aliases, comment and properties. The server assigns the version number, and the response carries only the status code.
Sign in with a bearer token or a local user's password; see Authentication.
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
The operation succeeded. The body carries only code, which is 0.
- application/vnd.gravitino.v1+json
- Schema
- Example (from schema)
- Example
Schema
Possible values: [0]
Status code of the response
{
"code": 0
}
{
"code": 0
}
The metalake, catalog, schema or 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
Deprecated diagnostic stack trace. Enterprise omits it by default because it can expose internal implementation details. Operators can opt in for controlled diagnostics with gravitino.server.webserver.includeErrorStackTrace=true. See OWASP REST Security: Error handling and CWE-209.
{
"code": 1002,
"type": "string",
"message": "string"
}
{
"code": 1003,
"type": "NoSuchModelException",
"message": "Model does not exist",
"stack": [
"org.apache.gravitino.exceptions.NoSuchModelException: Model does not exist"
]
}
One or more of the requested aliases are already in use by another version of the model.
- 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
Deprecated diagnostic stack trace. Enterprise omits it by default because it can expose internal implementation details. Operators can opt in for controlled diagnostics with gravitino.server.webserver.includeErrorStackTrace=true. See OWASP REST Security: Error handling and CWE-209.
{
"code": 1002,
"type": "string",
"message": "string"
}
{
"code": 1004,
"type": "ModelVersionAliasesAlreadyExistException",
"message": "Model version aliases already exist",
"stack": [
"org.apache.gravitino.exceptions.ModelVersionAliasesAlreadyExistException: Model version aliases already exist"
]
}
The server hit an internal error that the client usually cannot fix by changing the request.
- 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
Deprecated diagnostic stack trace. Enterprise omits it by default because it can expose internal implementation details. Operators can opt in for controlled diagnostics with gravitino.server.webserver.includeErrorStackTrace=true. See OWASP REST Security: Error handling and CWE-209.
{
"code": 1002,
"type": "string",
"message": "string"
}
{
"code": 1002,
"type": "RuntimeException",
"message": "Internal Server Error",
"stack": [
"java.lang.RuntimeException: Internal Server Error"
]
}