Skip to main content
PATCH
/
models
/
aliases
/
{alias_id}
Update Model Alias
curl --request PATCH \
  --url https://api.opper.ai/v2/models/aliases/{alias_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "fallback_models": [
    "<string>"
  ],
  "description": "<string>"
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "fallback_models": [
    "<string>"
  ],
  "description": "<string>"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

alias_id
string<uuid>
required

The ID of the model alias to update

Body

application/json
name
string | null

The name of the model alias

Maximum string length: 255
fallback_models
string[] | null

Ordered list of model names to try as fallbacks

Minimum array length: 1
description
string | null

Optional description of the model alias

Maximum string length: 1000

Response

Successful Response

id
string<uuid>
required

The ID of the model alias

name
string
required

The name of the model alias

fallback_models
string[]
required

Ordered list of model names to try as fallbacks

description
string | null

Optional description of the model alias