Skip to main content
POST
/
admin
/
llm-gw
/
route-health
/
{provider_id}
/
reset
Reset a route to healthy
curl --request POST \
  --url https://{organization_id}.platform.barndoor.ai/api/llm-gateway/admin/llm-gw/route-health/{provider_id}/reset \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "upstream_model": "gpt-4o-mini"
}
'
{
  "provider_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "upstream_model": "<string>",
  "was_ejected": true,
  "shared_state_cleared": true
}

Authorizations

Authorization
string
header
required

JWT obtained through Barndoor's authentication flow. Pass the token verbatim in Authorization: Bearer <token>. Use the Barndoor SDK's loginInteractive() helper to obtain a token in scripts and notebooks.

Path Parameters

provider_id
string<uuid>
required

Body

application/json
upstream_model
string
required
Example:

"gpt-4o-mini"

Response

Reset result

provider_id
string<uuid>
required
upstream_model
string
required
was_ejected
boolean
required

Whether this gateway pod had the route ejected before the reset

shared_state_cleared
boolean
required

Whether the cross-pod cooldown was cleared