---
title: "Update avatar"
method: POST
path: "/repos/{owner}/{repo}/avatar"
tags: ["repository"]
---

# Update avatar

`POST /repos/{owner}/{repo}/avatar`

## Path parameters

- `owner` string, required
- `repo` string, required

## Request body

- UpdateRepoAvatarOption — UpdateRepoAvatarUserOption options when updating the repo avatar
  - `image` string — image must be base64 encoded

## Response `204`

APIEmpty is an empty response

## Other responses

- `404` — APINotFound is a not found empty response

---

[API](https://skmtc.net/gitea/apis/gitea-api.md) · [All operations](https://skmtc.net/gitea/apis/gitea-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gitea/gitea-api/versions/350de506cefa/schema)
