User Template

Modify User Template

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
put/api/user_template/{template_id}

Path parameters

template_idinteger required

Request body

namestring nullable
data_limitinteger nullable

data_limit can be 0 or greater

expire_durationinteger nullable

expire_duration can be 0 or greater in seconds

username_prefixstring nullable
username_suffixstring nullable
inboundsobject

Example request

{
  "data_limit": 0,
  "expire_duration": 0,
  "inbounds": {
    "vless": [
      "VLESS_INBOUND"
    ],
    "vmess": [
      "VMESS_INBOUND"
    ]
  },
  "name": "my template 1"
}

Response

Successful Response

namestring nullable
data_limitinteger nullable

data_limit can be 0 or greater

expire_durationinteger nullable

expire_duration can be 0 or greater in seconds

username_prefixstring nullable
username_suffixstring nullable
inboundsobject
idinteger required

Changes

No recorded changes to this endpoint across all 1 revision of this API.