/action?do=sync: Device Sync
Send JSON strings as form POST. mode directions are relative to the App receiving the request; an HTTP OK does not mean data has been merged.
force=true deletes existing data
history deletes the viewing history of the matching configuration; keep deletes all favorites. For normal syncs, omit force or set it to false.
How favorites relate
Decoded content of the two form fields
Convert configs and targets to JSON form strings separately. Each Keep.cid must point at its own Config.id; it is mapped to the local configuration ID when merging.
Viewing history
Viewing history uses type=history, a single config, and a History array; merging compares createTime on entries with the same name instead of overwriting everything. A sync may load another configuration, so back up personal data first.
Merge rules
Local records
Existing entries in the App
Incoming targets
History锛廗eep in the request
→Compare createTime
Take the newer
The more recent side wins
→The other is older
Keep local
Existing data is preserved
Related
- Record source:
uuidfrom /device - Casting: actions 路 cast