Put user on hold
marzban_users_holdPut a user into on-hold status: the account stays inactive until their first connection, then the expiry timer starts. Ideal for pre-provisioning accounts without beginning their countdown.
Instructions
Sets a user's status to on_hold — inactive until their first connection, at which point the on-hold timer starts. Useful for provisioning an account ahead of time without starting its clock.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| username | Yes | ||
| onHoldExpireDuration | No | Seconds the user may stay on_hold before expiring, counted from their first connection. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| admin | No | ||
| links | No | ||
| expire | No | ||
| status | Yes | ||
| proxies | Yes | ||
| inbounds | No | ||
| username | Yes | ||
| next_plan | No | ||
| online_at | No | ||
| created_at | Yes | ||
| data_limit | No | data_limit can be 0 or greater | |
| used_traffic | Yes | ||
| sub_updated_at | No | ||
| on_hold_timeout | No | ||
| subscription_url | No | ||
| excluded_inbounds | No | ||
| auto_delete_in_days | No | ||
| sub_last_user_agent | No | ||
| lifetime_used_traffic | No | ||
| on_hold_expire_duration | No | ||
| data_limit_reset_strategy | No | no_reset |