Authorization: Bearer ********************
true
to manually cancel membership before expiration. Only appliable to Pro edition.0
, all version will be preserved.current_password
is required.two_fa_enabled
is not null
.two_fa_enabled
is true
, this is the 6-digts code for the new 2FA secret.is
false`, this is the 6-digts code for current enabled secret.{
"nick": "Aaron Liu",
"group_expires": true,
"language": "zh-CN",
"preferred_theme": "#1976d2",
"version_retention_enabled": true,
"version_retention_ext": [
"string"
],
"version_retention_max": 0,
"current_password": "string",
"new_password": "string",
"two_fa_enabled": true,
"two_fa_code": "string",
"disable_view_sync": true
}
curl --location --request PATCH '/user/setting' \
--header 'Content-Type: application/json' \
--data-raw '{
"nick": "Aaron Liu",
"group_expires": true,
"language": "zh-CN",
"preferred_theme": "#1976d2",
"version_retention_enabled": true,
"version_retention_ext": [
"string"
],
"version_retention_max": 0,
"current_password": "string",
"new_password": "string",
"two_fa_enabled": true,
"two_fa_code": "string",
"disable_view_sync": true
}'
0
- Success.{
"code": 0,
"msg": ""
}