Update client
update_clientAdjust a client's traffic limit, expiry, IP limit, or enabled state without altering other settings. Pass only the fields you need to change.
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) |