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.
In: header
Path Parameters
The name of the model's owner.
The name of the model.
The name of the model.
The visibility of the model. 'public' models are visible to everyone and can be run and downloaded by anyone. 'restricted' models are visible to everyone and can be run by anyone, but only the owner can download them. 'private' models are only visible to the owner and can only be run or downloaded by the owner.
"private" | "public" | "restricted"The description of the model.
The overview of the model.
Source url from where the model's code can be referenced.
License url where the model's usage is specified.
Paper url from where research info on the model can be found.
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",
"owner": {
"account_id": "449e7a5c-69d3-4b8a-aaaf-5c9b713ebc65",
"name": "string",
"avatar_url": "string"
},
"predictions_count": 0,
"categories": [
{
"name": "string",
"slug": "string"
}
],
"overview": "string",
"source_url": "http://example.com",
"license_url": "http://example.com",
"paper_url": "http://example.com",
"cover_image_url": "http://example.com",
"latest_version": {
"schemas": {
"prediction": {
"input": {},
"output": {}
}
},
"compatibilities": {
"openai_chat_completions": false,
"openai_images_generations": false,
"openai_embeddings": false,
"openai_responses": false,
"anthropic_messages": false
},
"number": 0,
"release_notes": "string",
"created_at": "2019-08-24T14:15:22Z",
"container_image_digest": "string"
}
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}