POST
/
api
/
ml
/
v1
/
model-versions
curl --request POST \
  --url https://{controlPlaneURL}/api/ml/v1/model-versions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "manifest": {
    "name": "<string>",
    "description": "<string>",
    "metadata": {},
    "version_alias": "<string>",
    "ml_repo": "<string>",
    "version": 2,
    "type": "model-version",
    "source": {
      "type": "truefoundry",
      "uri": "<string>"
    },
    "framework": {
      "type": "transformers",
      "library_name": "transformers",
      "pipeline_tag": "<string>",
      "base_model": "<string>"
    },
    "environment": {
      "python_version": "<string>",
      "pip_packages": [
        "<string>"
      ]
    },
    "step": 0,
    "run_id": "<string>"
  }
}'
{}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
manifest
object
required

Model Version artifact.

Response

200
application/json
Successful Response

The response is of type object.