Spavik
API referenceModels

Rename a model

PATCH /v1/models/{id}

Download OpenAPI
PATCH
/v1/models/{id}

Authorization

apiKey
headerX-Spavik-Api-Key<token>

Spavik integration API key (sk-spv-api-...), sent in X-Spavik-Api-Key.

Path Parameters

id*string

Model identifier or slug

Header Parameters

User-Agent?string

Information about the agent originating the request, when known. Browsers supply their own value. Optional diagnostic metadata, declared by the caller and never used for authorization. Omit unknown values. Values are trimmed and truncated to the documented length.

Lengthlength <= 1024
X-Spavik-Client-Name?string

HTTP caller: SDK, MCP server or direct application (for example spavik-sdk-python, spavik-sdk-javascript or spavik-mcp). Optional diagnostic metadata, declared by the caller and never used for authorization. Omit unknown values. Values are trimmed and truncated to the documented length.

Lengthlength <= 128
X-Spavik-Client-Version?string

Version of that SDK, MCP server or direct application. Optional diagnostic metadata, declared by the caller and never used for authorization. Omit unknown values. Values are trimmed and truncated to the documented length.

Lengthlength <= 64

Request Body

application/json
  1. body
name?string
auto_update?boolean
retain_outcomes?booleanDeprecated

Deprecated and ignored. Outcomes and refresh are always available.

Response Body

Success

application/json
  1. response
id?string
name?string
slug?string
engine_family?string
Value in"flair""presage""prophecy"
target?string
task?string
Value in"classification""regression"
engine?string

Engine that prepared and evaluated this data version; not a prediction engine lock.

feature_columns?array<string>

Columns the served version expects in each row sent to predict. Null until the first training.

status?string
auto_update?boolean

Automatically folds outcomes back into the model.

retain_outcomes?booleanDeprecated

Deprecated compatibility field, always true. Outcomes are functional model data and require no retention opt-in.

latest_version?integer
created_at?string
Formatdate-time
import requestsurl = "https://api.spavik.co/v1/models/string"body = """{}"""response = requests.request("PATCH", url, data = body, headers = {  "Content-Type": "application/json"})print(response.text)
{  "id": "string",  "name": "string",  "slug": "string",  "engine_family": "flair",  "target": "string",  "task": "classification",  "engine": "string",  "feature_columns": [    "string"  ],  "status": "string",  "auto_update": true,  "retain_outcomes": true,  "latest_version": 0,  "created_at": "2019-08-24T14:15:22Z"}

How is this guide?

Last updated on