Light Logo
Models

Update a model

This endpoint uses PATCH semantics, meaning only the fields provided in the request body will be updated; all other fields remain unchanged.

PATCH
/models/{model_owner}/{model_name}
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.

name?Name

The name of the model.

visibility?ModelVisibility

The visibility of the model.

Value in"private" | "public"
description?Description

The description of the model.

overview?Overview

The overview of the model.

hardware_identifier?Hardware Identifier

The identifier of the hardware used by the model.

source_url?Source Url

Source url from where the model's code can be referenced.

license_url?License Url

License url where the model's usage is specified.

paper_url?Paper Url

Paper url from where research info on the model can be found.

category_slugs?Category Slugs

A list of model category slugs.

Response Body

curl -X PATCH "https://api.wrift.ai/v1/models/string/string" \  -H "Content-Type: application/json" \  -d '{}'
{
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "name": "string",
  "created_at": "2019-08-24T14:15:22Z",
  "visibility": "private",
  "description": "string",
  "updated_at": "2019-08-24T14:15:22Z",
  "source_url": "http://example.com",
  "license_url": "http://example.com",
  "paper_url": "http://example.com",
  "owner": {
    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
    "username": "string",
    "avatar_url": "string"
  },
  "predictions_count": 0,
  "categories": [
    {
      "name": "string",
      "slug": "string"
    }
  ],
  "overview": "string",
  "latest_version": {
    "number": 0,
    "release_notes": "string",
    "created_at": "2019-08-24T14:15:22Z",
    "container_image_digest": "string",
    "schemas": {
      "prediction": {
        "input": {},
        "output": {}
      }
    }
  },
  "hardware": {
    "identifier": "string",
    "name": "string"
  }
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}