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 username of the user that owns the model.
The name of the model.
The name of the model.
The visibility of the model.
"private" | "public"The description of the model.
The overview of the model.
The identifier of the hardware used by 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": {
"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"
},
"source_url": "http://example.com",
"license_url": "http://example.com",
"paper_url": "http://example.com"
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}List models for a user. GET
Retrieve a list of public models owned by the specified user. By default, the models are returned in the order that they were created. When sorting by prediction count, only models that have at least one prediction will be returned.
Cancel a prediction. POST
Cancel a prediction by its id. Only predictions that have not yet terminated can be cancelled. Cancellation is asynchronous and the prediction's status will remain unchanged until cancellation takes effect. Requesting cancellation for a prediction that has already been requested for cancellation is idempotent. Attempting to cancel a terminated prediction will return an error.