跳转到主要内容
PUT
/
v2
/
sub-users
/
{sub_user_id}
更新子用户
curl --request PUT \
  --url https://api.decodo.com/v2/sub-users/{sub_user_id} \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "traffic_limit": 123,
  "auto_disable": false,
  "password": "<string>",
  "traffic_count_from": "2023-12-25",
  "status": "active"
}
'
"{}"

授权

Authorization
string
header
必填

路径参数

sub_user_id
integer<int32>
必填

通过"获取子用户列表"接口获取的子用户 ID

请求体

application/json
traffic_limit
number<float>

流量限额

auto_disable
boolean
默认值:false

当流量限额用完时禁用子用户

password
string<json>

必须包含:12 个或更多字符;至少一个大写字母;一个小写字母;一个数字;以下符号之一 _ ~ + =(不允许使用 @:)。

traffic_count_from
string<date>

从指定日期开始计算子用户订阅流量。使用日期格式 yyyy-mm-dd hh:mm:ss。

status
enum<string>
可用选项:
active,
disabled

响应

201

The response is of type object.