Un-place a sensor.
DELETE/api/sensors/:id
Guarded on kind. A sensor is stored as an ordinary registry row, which is
what makes it an asset like everything else — and it also means an id typed into
this route addresses any row, including a real aircraft. Without the check,
DELETE /api/sensors/<a-drone-id> removes that drone from the registry, and
because the friendly whitelist is derived from registry membership it drops off
the whitelist at the same time: our own aircraft would start being scored as an
unknown contact. Invariant 10 — nothing may remove a real asset by side effect.
Request
Responses
- 200
- 404
the placement is removed
no placed sensor with this id in the workspace