---
title: "Create or update one failover mapping"
method: PUT
path: "/admin/failover"
tags: ["admin"]
---

# Create or update one failover mapping

`PUT /admin/failover`

## Request body

- AdminUpsertFailoverRuleRequest
  - `enabled` boolean
  - `fallback_models` string[]
  - `primary_model` string

## Response `200`

OK

- FailoverView
  - `created_at` string
  - `enabled` boolean
  - `fallback_models` string[]
  - `managed` boolean
  - `managed_source` string
  - `primary_model` string
  - `updated_at` string

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `502` — Bad Gateway
- `503` — Service Unavailable

## Changes

- **2026-06-30** `7398040e4b4b` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/enterpilot/apis/gomodel-api/changes/admin/failover/put.md)

---

[API](https://skmtc.dev/enterpilot/apis/gomodel-api.md) · [All operations](https://skmtc.dev/enterpilot/apis/gomodel-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/enterpilot/gomodel-api/revisions/4545d63e410e/schema)
