Modify User Template
PUT
/api/user_template/{id}
Modify User Template
- name can be up to 64 characters
- data_limit must be in bytes and larger or equal to 0
- expire_duration must be in seconds and larger or equat to 0
- inbounds dictionary of protocol:inbound_tags, empty means all inbounds
Authorizations
Parameters
Path Parameters
id
required
integer
Request Body required
object
name
string
data_limit
Data_limit can be 0 or greater
integer
expire_duration
Expire_duration can be 0 or greater in seconds
integer
username_prefix
string
username_suffix
string
inbounds
object
key
additional properties
Array<string>
Responses
200
Successful Response
object
name
string
data_limit
Data_limit can be 0 or greater
integer
expire_duration
Expire_duration can be 0 or greater in seconds
integer
username_prefix
string
username_suffix
string
inbounds
object
key
additional properties
Array<string>
id
required
integer
403
You’re not allowed
404
User Template not found
409
Template by this name already exists
422
Validation Error
object
detail
Array<object>
object
loc
required
Array
msg
required
string
type
required
string