Update client
update_clientUpdate a client's traffic limit, expiry, or enabled state. Pass only the fields to change; all other client settings remain unchanged.
Instructions
Update an existing client's traffic limit, expiry, or enabled state. Only the fields you pass are changed; everything else on the client is preserved.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| enable | No | Enable or disable the client | |
| limitIp | No | New max simultaneous IPs (0 = unlimited) | |
| totalGB | No | New data limit in GB (0 = unlimited) | |
| clientId | Yes | Client UUID (VLESS/VMess) or password (Trojan/Shadowsocks) — see get_client | |
| inboundId | Yes | Numeric ID of the inbound the client belongs to | |
| expiryDays | No | Alternative to expiryTime: set expiry to N days from now | |
| expiryTime | No | New expiry as a Unix ms timestamp (0 = never) |