Endpoints
Update an endpoint
Update a Frontier Gateway endpoint’s slug or targets.
Update an endpoint’s mutable fields. Send the fields you want to change. If you include
targets, the value replaces the endpoint’s full target list. If you include slug, the endpoint is renamed.
Authentication
Workspace API key with management scope, passed as
Authorization: Api-Key $BASETEN_API_KEY (or Bearer; both are accepted).Path parameters
Identifier of the endpoint, returned as
id by Create an endpoint.Body
Send only the fields you want to change.New globally-unique routing slug, formatted
{org_prefix}/{name}. The org_prefix must be a prefix your organization owns.The endpoint’s complete target list after the call. Exactly one target is supported at this time: send a list of length one. Sending an empty list or more than one target returns
400.Each entry takes:provider(string, required): Upstream provider for the target. One ofBASETEN,ANTHROPIC, orOPENAI.model_id(string): The Baseten model the slug routes to. Use forBASETENtargets.secret_id(string): Baseten secret holding the provider credential. Required for external providers (ANTHROPIC,OPENAI).target_model(string): Upstream model name to send. Required for external providers; optional forBASETEN.
Response
The updated endpoint, with the same shape as the Create an endpoint response:id, slug, targets, created_at, and updated_at.
Errors
| Status | Meaning |
|---|---|
400 Bad Request | Invalid payload, or a targets list that’s empty or has more than one entry. |
403 Forbidden | The endpoint exists but isn’t in your workspace, or the caller doesn’t have management scope. |
404 Not Found | No endpoint with this id in your workspace. |