Skip to main content
PATCH
Configure a lineage's promotion gate

Authorizations

Authorization
string
header
required

API key with the vk_ prefix. Create one from the dashboard.

Path Parameters

name
string
required

Lineage name

Body

application/json

PATCH /v1/models/{name}/gate: every field optional; a present field replaces the stored one.

enabled
boolean | null

true turns the gate on (needs a snapshot and at least one evaluator); false turns it off and keeps the config.

dataset_snapshot_id
string | null

<dataset_id>@snap-N in the workspace, not purged.

evaluators
object[] | null

llm_judge and code evaluators (human evaluators can't gate).

thresholds
object | null

Pinned evaluator (id or name) -> minimum pass rate in [0, 1]. Only evaluators with a pass rule. Replaces the whole map.

trials
integer<int32> | null

1-10.

max_error_rate
number<double> | null

[0, 1].

min_valid_items
integer<int64> | null

= 1.

non_regression
boolean | null
regression_tolerance
number<double> | null

[0, 1].

Response

The updated gate

A lineage's promotion gate.

object
string
required

Always "model_gate".

model
string
required

Lineage name.

enabled
boolean
required

While true, moving production needs evidence that meets config.

judge_human_agreement
object[]
required

Per pinned llm_judge evaluator: agreement with human scores on the same targets. Informational; never blocks a promotion.

config
null | object

null until configured. Kept when the gate is disabled.

updated_at
string<date-time> | null
updated_by
string | null
latest_production_experiment
null | object

The current production version's latest completed run on the gate snapshot with the gate's evaluator pins: the non-regression baseline.