update_relay
Apply new settings to a UniFi relay, checking current values first and avoiding writes when nothing changed. Requires relay ID from list_relays.
Instructions
Update relay settings (PATCH /v1/relays/{id}) with read-before/no-op/read-after.
host: console name, ID, or composite ID (MAC:numericId format).
relay_id: REQUIRED. Obtain it from list_relays (its id field).
settings: fields to change. No write when all match. Governed by
UNIFI_PROTECT_MUTATIONS_ENABLED.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | ||
| relay_id | Yes | ||
| settings | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||