跳转到内容
Try Gitea Cloud ☁️ for 30 days → Accelerate your Development & Deploys!
Support
This is the documentation of 23.8.2, which is no longer the latest release. See the latest release.

Update user settings

PATCH
/user/settings
curl --request PATCH \
--url https://gitea.example.com/api/v1/user/settings \
--header 'Authorization: Basic <credentials>' \
--header 'Content-Type: application/json' \
--data '{ "description": "example", "diff_view_style": "example", "full_name": "example", "hide_activity": true, "hide_email": true, "language": "example", "location": "example", "theme": "example", "website": "example" }'

UserSettingsOptions represents options to change user settings

object
description
string
diff_view_style
string
full_name
string
hide_activity
boolean
hide_email

Privacy

boolean
language
string
location
string
theme
string
website
string
Examplegenerated
{
"description": "example",
"diff_view_style": "example",
"full_name": "example",
"hide_activity": true,
"hide_email": true,
"language": "example",
"location": "example",
"theme": "example",
"website": "example"
}

UserSettings

Media typeapplication/json
Array<object>

UserSettings represents user settings

object
description
string
diff_view_style
string
full_name
string
hide_activity
boolean
hide_email

Privacy

boolean
language
string
location
string
theme
string
website
string
Examplegenerated
[
{
"description": "example",
"diff_view_style": "example",
"full_name": "example",
"hide_activity": true,
"hide_email": true,
"language": "example",
"location": "example",
"theme": "example",
"website": "example"
}
]