Light Logo
Model versions

Create a model version

Create a version of a model.

POST
/models/{model_owner}/{model_name}/versions
AuthorizationBearer <token>

In: header

Path Parameters

model_ownerModel Owner

The username of the user that owns the model.

model_nameModel Name

The name of the model.

release_notesRelease Notes

Information about changes such as new features, bug fixes, or optimizations in this version.

Lengthlength <= 255
schemasSchemas

The schemas of the model version.

container_image_digestContainer Image Digest

A sha256 hash digest of the version's container image.

Match^sha256:[a-f0-9]{64}$

Response Body

curl -X POST "https://api.wrift.ai/v1/models/string/string/versions" \  -H "Content-Type: application/json" \  -d '{    "release_notes": "string",    "schemas": {      "prediction": {        "input": {},        "output": {}      }    },    "container_image_digest": "string"  }'
{
  "number": 0,
  "release_notes": "string",
  "created_at": "2019-08-24T14:15:22Z",
  "container_image_digest": "string",
  "schemas": {
    "prediction": {
      "input": {},
      "output": {}
    }
  }
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}