Update preference setting
Only non-null fields in request body will be updated.
Request
Add the parameter Authorization
to Headers,whose value is to concatenate the Token after the Bearer. Example:Authorization: Bearer ********************
Body Params application/json
{
"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
}
Request Code Samples
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
}'
Responses
application/json Modified at 2025-08-12 07:13:02