Modify User
PUT
/api/user/{username}
Modify a user
- set expire to 0 to make the user unlimited in time, null to no change
- set data_limit to 0 to make the user unlimited in data, null to no change
- proxies dictionary of protocol:settings, empty means no change
- inbounds dictionary of protocol:inbound_tags, empty means no change
Authorizations
Parameters
Path Parameters
username
required
string
Request Body required
object
proxies
object
key
additional properties
object
expire
integer
data_limit
Data_limit can be 0 or greater
integer
data_limit_reset_strategy
An enumeration.
string
inbounds
object
key
additional properties
Array<string>
note
string
sub_updated_at
string format: date-time
sub_last_user_agent
string
online_at
string format: date-time
on_hold_expire_duration
integer
on_hold_timeout
string format: date-time
status
An enumeration.
string
Responses
200
Successful Response
object
proxies
required
object
expire
integer
data_limit
Data_limit can be 0 or greater
integer
data_limit_reset_strategy
string
inbounds
object
key
additional properties
Array<string>
note
string
sub_updated_at
string format: date-time
sub_last_user_agent
string
online_at
string format: date-time
on_hold_expire_duration
integer
on_hold_timeout
string format: date-time
username
required
string
status
required
An enumeration.
string
used_traffic
required
integer
lifetime_used_traffic
integer
created_at
required
string format: date-time
links
Array<string>
subscription_url
string
excluded_inbounds
object
key
additional properties
Array<string>
403
You’re not allowed
404
User not found
422
Validation Error
object
detail
Array<object>
object
loc
required
Array
msg
required
string
type
required
string