跳转到内容
Try Gitea Cloud ☁️ for 30 days → Accelerate your Development & Deploys!

Update Avatar

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

Name of the organization

Media typeapplication/json

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

APINotFound is a not found empty response

Media typeapplication/json