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

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

UpdateRepoAvatarUserOption options when updating the repo avatar

object
image

Image must be base64 encoded

string

Example generated

{
"image": "example"
}

APIEmpty is an empty response

Media typeapplication/json

APINotFound is a not found empty response

Media typeapplication/json