---
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

---

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