Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Model Version artifact.
Response
Successful Response
The response is of type object.
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>"
  }
}'{}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>"
  }
}'{}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Model Version artifact.
Show child attributes
Successful Response
The response is of type object.
Was this page helpful?