Skip to main content
PATCH
Update a custom endpoint

Authorizations

Authorization
string
header
required

JWT authentication token

Path Parameters

id
string<uuid>
required

Custom endpoint ID

Body

application/json

A field that is absent or null is left unchanged. manual_models: [] clears the manual model IDs (refused with endpoint_not_found when the endpoint has no model list of its own). A malformed field is a 400 with the code invalid_request.

api_key
string | null

A new bearer API key

Maximum string length: 4096
base_url
string | null

A changed base URL needs api_key in the same request

Maximum string length: 2048
display_name
string | null
Maximum string length: 80
manual_models
string[] | null

Response

Custom endpoint updated

A custom OpenAI-compatible endpoint. The API key is never returned.

base_url
string
required

Normalised https base URL, as the provider documents it (usually ending in /v1)

created_at
string<date-time>
required
display_name
string
required

The user's name for the endpoint, unique per account ignoring case

id
string<uuid>
required
is_validated
boolean
required

Whether the key was accepted by the endpoint

last_discovery_error
string | null
required

Stable code of the last model-list failure (for example endpoint_not_found); null after a successful listing

manual_models
string[]
required

Model IDs typed by the user

updated_at
string<date-time>
required