PUT /panels/ carries a version and refuses a stale one with 409

The Panels dialog re-reads the list on 409. A panels.json without a
version reads as 0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WgBfkm4rCmtd1T4vHWjEPx
This commit is contained in:
2026-10-15 10:07:50 +02:00
co-authored by Claude Opus 5.5
parent 0da9a65eac
commit ccc7081b08
10 changed files with 108 additions and 10 deletions
+5
View File
@@ -1946,6 +1946,11 @@ export class PanelsService {
* A panel that disappears here takes its credential with it, so this is also
* how a device is unpaired along with its assignment. Re-pairing one screen
* and keeping the assignment is ``/{panel_id}/unpair`` below.
*
* The body carries the ``version`` it was based on, and a save someone else
* has moved past is refused with 409, as a dashboard's is. Two clients each
* writing back the whole list would otherwise drop each other's panels, and
* a dropped panel revokes its screen at once.
* @param data The data for the request.
* @param data.requestBody
* @returns PanelsPublic Successful Response