Update avatar
POST
/repos/{owner}/{repo}/avatar
const url = 'https://gitea.com/api/v1/repos/example/example/avatar';const options = { method: 'POST', headers: {Authorization: 'Basic <credentials>', 'Content-Type': 'application/json'}, body: '{"image":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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" }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”owner
required
string
Owner of the repo
repo
required
string
Name of the repo
Request Body
Section titled “Request Body”Media typeapplication/json
UpdateRepoAvatarUserOption options when updating the repo avatar
object
image
Image must be base64 encoded
string
Examplegenerated
{ "image": "example"}Responses
Section titled “Responses”APIEmpty is an empty response
APINotFound is a not found empty response