Skip to content
Try Gitea Cloud ☁️ for 30 days → Accelerate your Development & Deploys!

Update avatar

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

Owner of the repo

repo
required
string

Name of the repo

Media typeapplication/json

UpdateRepoAvatarUserOption options when updating the repo avatar

object
image

Image must be base64 encoded

string
Examplegenerated
{
"image": "example"
}

APIEmpty is an empty response

APINotFound is a not found empty response