---
title: "Update Daemon capabilities"
method: POST
path: "/api/daemons/{id}/update-capabilities"
tags: ["Daemons", "internal"]
---

# Update Daemon capabilities

`POST /api/daemons/{id}/update-capabilities`

Legacy internal endpoint for pre-0.15 daemons to report their interfaced
subnets as bare ids. Modern daemons report them via the status heartbeat's
`interfaced_subnets` channel; this remains functional so older daemons in a
rolling deploy keep reporting (and don't 404).

## Path parameters

- `id` string, uuid, required

## Request body

- LegacyCapabilities — Legacy inbound-only capabilities blob. Pre-0.15 daemons report their interfaced subnets as bare `subnet_id`s in this `capabilities` object (they predate the `interfaced_subnets: Vec<Subnet>` heartbeat channel). It is deserialize-only: the server never stores it, never echoes it in `DaemonResponse`, and it has no `SqlValue` variant. Reported ids are routed into the `daemon_interfaced_subnets` junction (existence-filtered) so legacy daemons keep reporting interfaced subnets. ≥0.15 daemons send the `Vec<Subnet>` channel instead and leave this empty.
  - `interfaced_subnet_ids` string[], required — Subnets the daemon has an interface on, as reported by older daemons.

## Response `200`

Capabilities updated

- ApiResponse
  - `data` TupleUnit — No payload. Present only so the envelope keeps its shape.
  - `error` string, nullable — Human-readable failure message. Omitted on success.
  - `meta` ApiMeta, required — API metadata included in all responses
    - `api_version` integer, required — API version (integer, increments on breaking changes)
    - `server_version` string, required — Server version (semver)
  - `success` boolean, required — `true` when the request succeeded. `false` responses carry `error` instead of `data`.

## Other responses

- `404` — Daemon not found

---

[API](https://skmtc.net/scanopy/apis/scanopy-api.md) · [All operations](https://skmtc.net/scanopy/apis/scanopy-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/scanopy/scanopy-api/versions/28e466341947/schema)
