Skip to main content
PATCH
Flip an adapter to a new version

Authorizations

Authorization
string
header
required

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

Path Parameters

deployment_id
string
required

Deployment ID

serve_name
string
required

The adapter's public alias

Body

application/json
model_id
string
required

ID of the adapter model to flip the alias to. Same constraints as attach: owned, ready, artifact_type='adapter', matching base model.

Response

The cutover completed: the alias now serves the new model at version+1, status 'active'

A LoRA adapter attached to a multi_adapter deployment.

object
string
required

Always "deployment_adapter".

id
string
required

Attachment ID (ada_...).

deployment_id
string
required

The deployment (fleet) this adapter is attached to.

serve_name
string
required

Public routing alias the adapter serves under.

model_id
string
required

The custom model currently served under this alias.

version
integer<int32>
required

Monotonic version counter; incremented on every flip/rollback.

internal_name
string
required

vLLM-facing name ("{serve_name}@v{version}-{tag}", tag derived from model_id): never reused for different weights.

status
string
required

attaching | active | detaching. 'active' means every serving replica reports the current version loaded.

created_at
string<date-time>
required

Attachment creation time.

updated_at
string<date-time>
required

Last status/version change time.

replicas
object[]
required

Per-serving-replica load state for the CURRENT internal_name.

previous_model_id
string | null

The previously served model, if any (the rollback target).

pending_model_id
string | null

Mid-flip only: the staged new version awaiting fleet convergence.

pending_internal_name
string | null

Mid-flip only: the staged version's internal name.

model_version_id
string | null

The platform model version (model_versions.id) currently served under this alias, when the model belongs to a lineage.

pending_model_version_id
string | null

Mid-flip only: the platform model version staged by a production alias move; the fleet cuts over to it automatically on convergence.