Skip to main content
PATCH
Update a private endpoint

Authorizations

Authorization
string
header
required

A Nemonist key (sk-nm-...) as a bearer token in the Authorization header.

Headers

HTTP-Referer
string

The app identifier should be your app's URL and is used as the primary identifier for rankings. This is used to track API usage per application.

X-OpenRouter-Title
string

The app display name allows you to customize how your app appears in OpenRouter's dashboard.

X-OpenRouter-Categories
string

Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.

Path Parameters

id
string
required

Stable identifier of the private endpoint.

Body

application/json

Fields to change on a draft; only those sent change, declared_zdr null clears it, and any change makes the last validation stale. slug, workspace_id and activate are refused with 400. model_permaslug, provider_slug, pricing and declared_region are refused with 400: a custom endpoint serves its own model names and is not billed.

name
string

Display name; empty uses the slug.

Maximum string length: 100
base_url
string

Public HTTPS base URL of the OpenAI-compatible server, such as https://host/v1. Private and loopback addresses are refused.

formats
enum<string>[]

APIs the server speaks: chat (/chat/completions) always, plus responses (/responses) and messages (/messages) when listed.

Available options:
chat,
responses,
messages
declared_zdr
boolean | null

Your word that the server keeps no prompt or completion data; null is undeclared.

upstream_model_id
string

The model validation calls, as the server names it; empty uses the first model its GET /models lists.

Maximum string length: 200
key
string

The server's API key, sent to it as a bearer token; stored sealed and never returned.

Maximum string length: 8000

Response

The updated endpoint

The endpoint.

data
object
required

The endpoint.