Update Endpoint Route
PUT
/v1/admin/forge-endpoints/{endpoint_id}
const url = 'http://localhost:8080/v1/admin/forge-endpoints/example';const options = { method: 'PUT', headers: {'Content-Type': 'application/json'}, body: '{"name":"example","model":"example","base_url":"example","aws_region":"example","gcp_project":"example","gcp_region":"example","credentials":{"api_key":"example","access_key_id":"example","secret_access_key":"example","session_token":"example","service_account_json":"example"},"default_max_budget_usd":1,"default_max_turns":1}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url http://localhost:8080/v1/admin/forge-endpoints/example \ --header 'Content-Type: application/json' \ --data '{ "name": "example", "model": "example", "base_url": "example", "aws_region": "example", "gcp_project": "example", "gcp_region": "example", "credentials": { "api_key": "example", "access_key_id": "example", "secret_access_key": "example", "session_token": "example", "service_account_json": "example" }, "default_max_budget_usd": 1, "default_max_turns": 1 }'Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” endpoint_id
required
Endpoint Id
string
Request Body required
Section titled “Request Body required ” Media type application/json
UpdatePayload
object
credentials
Any of:
_CredentialsPayload
Backend-tagged credentials. Validated server-side.
The shape is union-y: api_key for anthropic / custom_url,
access_key_id/secret_access_key/session_token? for
bedrock, service_account_json for vertex. We intentionally
don’t typedef each combination — server validates per backend.
null
Example generated
{ "name": "example", "model": "example", "base_url": "example", "aws_region": "example", "gcp_project": "example", "gcp_region": "example", "credentials": { "api_key": "example", "access_key_id": "example", "secret_access_key": "example", "session_token": "example", "service_account_json": "example" }, "default_max_budget_usd": 1, "default_max_turns": 1}Responses
Section titled “ Responses ”Successful Response
Media type application/json
Response Update Endpoint Route V1 Admin Forge Endpoints Endpoint Id Put
object
key
additional properties
any
Example generated
{}Validation Error
Media type application/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Example generated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}