Skip to main content
PATCH
Update an AI Gateway virtual model

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Unique identifier for an AI Gateway virtual model.

Body

application/json
name
string

The value clients send as model.

models
string[]

Models in failover order. Replaces the whole list.

description
string

Human-readable description. An empty value clears it.

Response

The updated AI Gateway virtual model.

id
string
required

Unique identifier for this virtual model.

uri
string
required

URI of this AI Gateway Virtual Model API resource.

name
string
required

The value clients send as model.

models
string[]
required

Models in failover order.

createdAt
string<date-time>
required

Timestamp when the virtual model was created.

updatedAt
string<date-time>
required

Timestamp when the virtual model was last updated.

createdBy
object
required
lastUpdatedBy
object
required
warnings
object[]
required

Problems that started after the last save, for example a target that no longer resolves. Computed on each read. A warning never blocks requests.

description
string

Human-readable description.