curl --request POST \
--url https://{controlPlaneURL}/api/ml/v1/artifact-versions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"manifest": {
"name": "<string>",
"metadata": {},
"ml_repo": "<string>",
"source": {
"type": "truefoundry",
"uri": "<string>"
},
"description": "<string>",
"version_alias": "<string>",
"version": 2,
"type": "artifact-version",
"step": 0,
"run_id": "<string>"
}
}
'{}curl --request POST \
--url https://{controlPlaneURL}/api/ml/v1/artifact-versions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"manifest": {
"name": "<string>",
"metadata": {},
"ml_repo": "<string>",
"source": {
"type": "truefoundry",
"uri": "<string>"
},
"description": "<string>",
"version_alias": "<string>",
"version": 2,
"type": "artifact-version",
"step": 0,
"run_id": "<string>"
}
}
'{}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Artifact Version manifest.
Show child attributes
Name of the entity
256Key value metadata. Should be valid JSON. For e.g. {"business-unit": "sales", "quality": "good", "rating": 4.5}
Name of the ML Repo
512Version alias is alternate, ideally human readable, version string to reference an artifact version. It should start with v followed by alphanumeric and it can include . and - in between (e.g. v1.0.0, v1-prod, v3-dev, etc)
128Version of the entity
x >= 1artifact-version Step/Epoch number in an iterative training loop the artifact version was created. Generally useful when logging a model version from a MLRepo Run
x >= 0ID of the MLRepo Run that generated the artifact version
Successful Response
The response is of type EmptyResponse · object.
Was this page helpful?