@astrofoundry/pi-astro 0.40.13 → 0.40.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/skills/network/SKILL.md +1 -1
package/package.json
CHANGED
package/skills/network/SKILL.md
CHANGED
|
@@ -48,7 +48,7 @@ Any write of the Network API under `/v1/sites/<siteId>/`: networks, Wi-Fi broadc
|
|
|
48
48
|
|
|
49
49
|
Procedure for every write:
|
|
50
50
|
|
|
51
|
-
1. Read the current object (or, for a create, an existing object of the same kind) with `get` and copy its structure. When the site has none of that kind yet, use exactly the fields the task gives; never invent a field name. A PUT sends the complete object
|
|
51
|
+
1. Read the current object (or, for a create, an existing object of the same kind) with `get` and copy its structure. When the site has none of that kind yet, use exactly the fields the task gives; never invent a field name. A PUT sends the complete object; every write body leaves out the read-only fields `id`, `metadata`, `default`, and `index`, which UniFi rejects with 400 `Unknown request body property`.
|
|
52
52
|
2. For a firewall policy, read `firewall-zones` for the zone ids; names follow `<what> - from <source>` (the `from Cortex` family on 37: source zone plus source IP filter, destination zone plus IP and port filter, TCP, IPv4, return traffic allowed, logging off).
|
|
53
53
|
3. Write, then read the object back and report its id, name, and the fields that changed.
|
|
54
54
|
|