---
title: "Suppress or restore a single discovered route."
method: PATCH
path: "/traefik-discovery/routes/{host}/enabled"
tags: ["Traefik Discovery"]
---

# Suppress or restore a single discovered route.

`PATCH /traefik-discovery/routes/{host}/enabled`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/traefik-discovery/routes/{host}/enabled`
- Auth: HTTP bearer

This is a plain column update: the `traefik_discovered_routes` row-level
trigger fires `notify_route_table_change()` on an `enabled` change, so the
existing `route_table_changes` LISTEN/NOTIFY path reloads this node's route
table *and* every other control plane node's. No manual reload here.

## Path parameters

- `host` string, required

## Request body

- UpdateTraefikRouteEnabledRequest: Body of `PATCH /traefik-discovery/routes/{host}/enabled`.
  - `enabled` boolean, required: `false` suppresses the route without touching the container's labels; the row stays visible so the operator can see what was found.

## Response `200`

Updated discovered route

- TraefikDiscoveredRouteResponse: One row of `traefik_discovered_routes`, annotated for an operator.
  - `active` boolean, required: Whether this route is currently served by the proxy.
  - `contested_by` string[], required: Other labelled containers that claim this host and lost the collision. Non-empty means someone's container is silently not being routed.
  - `created_at` string, date-time, required
  - `enabled` boolean, required
  - `host` string, required
  - `id` integer, required
  - `inactive_reason` string, nullable: Why it isn't, when `active` is false.
  - `last_seen_at` string, date-time, required
  - `network` string, required
  - `router_name` string, required
  - `target_container_id` string, required
  - `target_container_name` string, required
  - `target_host_port` integer, nullable: Host-published port, used on baremetal installs where the proxy cannot resolve container names.
  - `target_port` integer, required
  - `tls` boolean, required
  - `tls_certificate` TraefikRouteTlsBlock, nullable: TLS state for a single discovered route (ADR-041 §3/§4). Absent when no `traefik_route_certificates` row exists for this host. Never `null` on a host where `cert_authorized = true`.
    - `authorized_at` string, date-time, required
    - `authorized_container_id` string, nullable: Container ID that was authorized. Used for drift comparison.
    - `authorized_container_name` string, nullable
    - `cert_authorized` boolean, required: The operator has explicitly authorized TLS for this host.
    - `container_drift` boolean, required: `true` when the currently-serving container differs from the one that was authorized. Requires operator acknowledgment.
    - `container_drift_detected_at` string, date-time, required: When drift was first detected.
    - `current_container_name` string, nullable: Name of the container that currently holds the host (for the drift UI).
    - `days_remaining` integer, nullable: Days until expiry.
    - `imported_at` string, date-time, required
    - `not_after` string, nullable: ISO 8601 expiry time of the current certificate, if one exists.
    - `renewal_method` string, nullable: `"http-01"` or `"dns-01"`.
    - `serving` boolean, required: `true` when the proxy is currently loading a cert for this host.
    - `source` string, nullable: `"acme"` or `"imported"`.
    - `status` string, nullable: Certificate status as reported by the `domains` row, e.g. `"active"`.
  - `updated_at` string, date-time, required

## Other responses

- `400`: Validation error
- `401`: Unauthorized
- `403`: Insufficient permissions
- `404`: No discovered route for that host
- `500`: Internal server error

## Changes

- **2026-11-09** `12896146b193`: 5 breaking
  - removed the required property `extensions` from the response with the `400` status
  - removed the required property `extensions` from the response with the `401` status
  - removed the required property `extensions` from the response with the `403` status
  - removed the required property `extensions` from the response with the `404` status
  - …1 more
- **2026-10-05** `4b228ebed583`: 5 info
  - added the optional property `status` to the response with the `400` status
  - added the optional property `status` to the response with the `401` status
  - added the optional property `status` to the response with the `403` status
  - added the optional property `status` to the response with the `404` status
  - …1 more
- **2026-10-05** `63a80791dc58`: 5 warning
  - removed the optional property `status` from the response with the `400` status
  - removed the optional property `status` from the response with the `401` status
  - removed the optional property `status` from the response with the `403` status
  - removed the optional property `status` from the response with the `404` status
  - …1 more
- …earlier changes not shown

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/traefik-discovery/routes/:host/enabled/patch.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
