---
title: "Enable or disable one client-side route (admin)"
method: PATCH
path: "/runtime-config/routes/{route}"
tags: ["runtime-config"]
---

# Enable or disable one client-side route (admin)

`PATCH /runtime-config/routes/{route}`

## Request

- Base URL: `https://api.dre.app` (the document declares no server; this is the origin it was published from)
- URL: `https://api.dre.app/runtime-config/routes/{route}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/dre/apis/dre-api/docs/runtime-config/routes/:route/patch.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `route` 'lifi' | 'lifiBridge', required

## Request body

- UpdateRouteFlagDto
  - `enabled` boolean, required: Whether clients may use this route. `false` turns it off.

## Response `200`

The resulting allow-list

- RuntimeConfigResponseDto
  - `enabledRoutes` RuntimeRoute[], required: Client-side routes the client is permitted to use. An allow-list: a route absent from this array is off, and so is every route when this response cannot be read at all.

## Other responses

- `400`: Unknown route or malformed body
- `401`: Unauthorized
- `403`: Admin role required, or sanctioned region

## Changes

- **2026-09-08** `1ee8fdf15424`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/dre/apis/dre-api/changes/runtime-config/routes/:route/patch.md)

---

[API](https://skmtc.dev/dre/apis/dre-api.md) - [All operations](https://skmtc.dev/dre/apis/dre-api/llms.txt) - [OpenAPI document](https://skmtc.dev/dre/apis/dre-api/revisions/af4c974abc44?raw)
