Rename a model
PATCH /v1/models/{id}
apiKeyX-Spavik-Api-Key<token>Spavik integration API key (sk-spv-api-...), sent in X-Spavik-Api-Key.
id*stringModel identifier or slug
User-Agent?stringInformation 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.
length <= 1024X-Spavik-Client-Name?stringHTTP 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.
length <= 128X-Spavik-Client-Version?stringVersion 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.
length <= 64application/json- body
name?stringauto_update?booleanretain_outcomes?booleanDeprecatedDeprecated and ignored. Outcomes and refresh are always available.
Success
application/json- response
id?stringname?stringslug?stringengine_family?string"flair""presage""prophecy"target?stringtask?string"classification""regression"engine?stringEngine 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?stringauto_update?booleanAutomatically folds outcomes back into the model.
retain_outcomes?booleanDeprecatedDeprecated compatibility field, always true. Outcomes are functional model data and require no retention opt-in.
latest_version?integercreated_at?stringdate-timeimport 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