hosts_update
Update an existing host's settings—SNI, ALPN, port, address, tags, and more—to adjust its connection parameters and client visibility.
Instructions
Update an existing host
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sni | No | New SNI | |
| alpn | No | New ALPN | |
| host | No | New host header | |
| path | No | New URL path | |
| port | No | New port | |
| tags | No | Array of tags (uppercase letters, numbers, underscores and colons only; max 36 chars each, up to 10 tags) | |
| uuid | Yes | Host UUID to update | |
| mapper | No | Outbound field operations per client format. Each op is {op:"copy",from,to} | {op:"set",value,to} | {op:"unset",to} | |
| remark | No | New remark/name | |
| address | No | New address | |
| isDisabled | No | Enable/disable host | |
| fingerprint | No | New TLS fingerprint (free-form) | |
| securityLayer | No | New security layer | |
| internalSquads | No | Which internal squads may see this host (replaces excludedInternalSquads) | |
| mihomoIpVersion | No | IP version used by Mihomo clients | |
| serverDescription | No | New server description | |
| pinnedPeerCertSha256 | No | Pin peer certificate by SHA-256 fingerprint | |
| verifyPeerCertByName | No | Verify peer certificate by name | |
| excludeFromSubscriptionTypes | No | Subscription types to exclude this host from |