Skip to content
Try Gitea Cloud ☁️ for 30 days → Accelerate your Development & Deploys!
This is the documentation of 1.24.7, which is no longer the latest release. See the latest release.

Update Avatar

POST
/user/avatar
curl --request POST \
--url https://gitea.com/api/v1/user/avatar \
--header 'Authorization: Basic <credentials>' \
--header 'Content-Type: application/json' \
--data '{ "image": "example" }'

UpdateUserAvatarUserOption options when updating the user avatar

object
image

Image must be base64 encoded

string
Examplegenerated
{
"image": "example"
}

APIEmpty is an empty response

Media typeapplication/json